Commit Graph

12 Commits

Author SHA1 Message Date
Mark Thomas
c9db9d4c02 checks: fixup test-check-module-imports for rust changes
Summary:
Fix up test-check-module-imports, mostly by using absolute imports where
possible.

Also, some lfs errors have been removed, so remove their tests failures too.

Test Plan: Run test-check-module-imports test.

Reviewers: durham, #mercurial

Reviewed By: durham

Differential Revision: https://phabricator.intern.facebook.com/D6679241

Tasks: T24908724

Signature: 6679241:1515457419:2f8683206c8d43af99254c9f75f08af374673c2f
2018-01-08 17:01:31 -08:00
Jun Wu
0e18bfbbfa absorb: move to hgext
Summary: Move absorb to hgext.

Test Plan: `run-tests.py -l` with empty `PYTHONPATH`.

Reviewers: durham, #mercurial

Reviewed By: durham

Differential Revision: https://phabricator.intern.facebook.com/D6678562

Signature: 6678562:1515455701:8778bc0ce54ec017483f6826a9792bebcb9464d7
2018-01-08 13:57:01 -08:00
Jun Wu
1802036ff3 linelog: move to lib/ and mercurial/cyext
Summary:
The `lib/linelog` directory contains pure C code that is unrelated from
either Mercurial or Python. The `mercurial/cyext` contains Cython extension
code (although for linelog's case, the Cython extension is unrelated from
Mercurial).

Cython is now a hard dependence to simplify the code.

Test Plan: `make local` and check `from mercurial.cyext import linelog` works.

Reviewers: durham, #mercurial

Reviewed By: durham

Subscribers: durham, fried

Differential Revision: https://phabricator.intern.facebook.com/D6678541

Signature: 6678541:1515455512:967266dc69c702dbff95fdea05671e11c32ebf28
2018-01-08 14:35:01 -08:00
Mark Thomas
2e81565606 fb-hgext: integrate rust libraries and extensions with setup.py
Summary:
Move the rust libraries and extensions to their new locations, and integrate
them with the hg-crew setup.py.

Test Plan: Run `python setup.py build` and verify rust extensions are built.

Reviewers: durham, #mercurial

Reviewed By: durham

Subscribers: fried, jsgf, mitrandir

Differential Revision: https://phabricator.intern.facebook.com/D6677251

Tasks: T24908724

Signature: 6677251:1515450235:920faf40babbce9b09e3283ff9ca328d1c5c51e6
2018-01-08 15:26:24 -08:00
Saurabh Singh
52ece0530c fastmanifest: fix typo in error string
Summary: Just discovered this typo while browsing through code.

Test Plan: Ran all the tests.

Reviewers: mitrandir, #sourcecontrol

Reviewed By: mitrandir

Differential Revision: https://phabricator.intern.facebook.com/D6677652

Signature: 6677652:1515448670:ff355bcce1beaf1614517b5fc6b39978565b33ac
2018-01-08 15:24:40 -08:00
Durham Goode
0938fe19a3 clib: move fb-hgext/clib/ to lib
Summary:
cdatapack depends on clib, so let's move it to lib/ outside of fb-hgext.

None of the consumers of these files were changed. They will be changed as they
are moved into the main part of the repo.

Test Plan: hg purge --all && make local && cd tests && ./run-tests.py -S -j 48

Reviewers: mitrandir, #mercurial

Reviewed By: mitrandir

Differential Revision: https://phabricator.intern.facebook.com/D6677197

Signature: 6677197:1515447873:399fb3e7beb5cc1ad8db18f42b359ffbfbeb21f2
2018-01-08 15:08:18 -08:00
Phil Cohen
572b2b9227 hgext3rd: remove our copy of lfs
Summary: Per discussion with quark@, we actually don't use this anymore as the extension was
upstreamed, and we now use the upstream version.

Test Plan: howdoi

Reviewers: mercurial

Subscribers:

Tasks:

Tags:
2018-01-08 14:36:10 -08:00
Durham Goode
1ab0bb112d sha1: add sha1detectcoll library to setup.py
Summary:
cdatapack depends on sha1detectcoll, so let's add the library to setup.py before
we add cdatapack.

Test Plan:
hg purge --all && make local && cd tests/ && ./run-tests.py -S -j 48

Verified sha1dc was in the build output and the tests passed.

Reviewers: quark, #mercurial

Reviewed By: quark

Differential Revision: https://phabricator.intern.facebook.com/D6676405

Signature: 6676405:1515444508:2da65c6c3a18267a1d3c151c8e9acf60b674ffc2
2018-01-08 12:54:57 -08:00
Jun Wu
3f108fb5c1 prebuilt: remove prebuilt directory
Summary:
The prebuilt directory was added by D5252935 to allow a third-party to build
our extensions without a working Cython. Since the third-party is unlikely
to use this version and our build infra does have a working Cython. Let's
remove prebuilt directory.

Test Plan: `make local` in fb-hgext and it works.

Reviewers: rmcelroy, #mercurial

Reviewed By: rmcelroy

Differential Revision: https://phabricator.intern.facebook.com/D6675678

Signature: 6675678:1515436932:a5bada0edbb06584cc5e4031cb628a1a946d6047
2018-01-08 10:34:47 -08:00
Kostia Balytskyi
51b54621e7 fb-hgext: rename all the tests to be of test-fb-hgext-smth pattern
Summary:
For the purposes of easier identification of tests which came from fb-hgext,
let's rename them all, even the ones for remotefilelog and so on. Once everything
is in hg-crew properly, we can rename things to not be named like this.

Depends on D6675292

Test Plan: - just a rename

Reviewers: #sourcecontrol

Differential Revision: https://phabricator.intern.facebook.com/D6675309
2018-01-08 10:34:11 -08:00
Kostia Balytskyi
8c3cef4fa8 fb-hgext: drop hgext3rd/sparse.py which is not used anymore
Summary: Our own sparse is now renamed to fbsparse.

Test Plan: - just a dropped file, no big deal.

Reviewers: #sourcecontrol

Differential Revision: https://phabricator.intern.facebook.com/D6675292
2018-01-08 10:34:11 -08:00
Kostia Balytskyi
4f666b429d fb-hgext: move into fb-hgext dir 2018-01-03 07:28:19 -08:00