sapling/contrib
Wez Furlong f517200115 hg: add eden import helper debug command
Summary:
In our linux deployments it was relatively straightforward
to import the mercurial runtime from a python process running the
system python executable.   Our macOS deployments are a lot more
complex because they do not use the system python and do not install
the mercurial python packages in the python path of the target
python executable.

It is simpler to move the import helper functional into a mercurial
command that we can invoke instead of our own helper program.

This diff moves the script to be a debug command and adjusts its
argument parsing to match the mercurial dispatcher requirements.

There are some stylistic mismatches between this code and the
rest of mercurial; I'm suggesting that we ignore those as the
medium term solution is that this command is replaced by eden
directly consuming the rust config parsing code and by native
rust code to perform the data fetching that we need.

Reviewed By: pkaush

Differential Revision: D13522225

fbshipit-source-id: 28d751c5de4228491924df4df88ab382cfbf146a
2019-01-16 19:49:27 -08:00
..
benchmarks codemod: reformat rest of the code 2018-07-05 17:52:43 -07:00
builddeb_fb contrib: move builddeb to contrib/builddeb_fb/ 2018-01-09 16:44:27 -08:00
chg chg: tell original cmd to not restart chg 2018-11-19 06:15:32 -08:00
debian build: "make deb" failed when the base path contained spaces 2017-10-11 01:47:00 +02:00
docker docker: try to follow the best practices for writing Dockerfiles 2017-10-01 01:02:22 +02:00
hgsh hg: disable check-code tests for C code 2018-06-05 19:21:43 -07:00
hgsubversion/tools hgsuversion: move docs and tools 2018-01-10 16:20:15 -08:00
macosx packaging: update book URL in Mac and Windows READMEs 2017-10-20 13:54:51 -05:00
plan9 urls: bulk-change primary website URLs 2015-09-30 15:43:49 -05:00
vagrant vagrant: update to official Debian 8.1 base box 2015-09-02 11:52:24 -05:00
vim spelling: fixes of non-dictionary words 2016-10-17 23:16:55 +02:00
whochanges contrib: add a whochanges script 2018-10-19 17:26:33 -07:00
win32 codemod: reformat rest of the code 2018-07-05 17:52:43 -07:00
wix Move hgext/fsmonitor/pywatchman/ to hgext/extlib/pywatchman/ 2018-05-15 12:06:47 -07:00
xdiff move scm/hg/.clang-format to scm/hg/mercurial/ 2018-05-25 14:35:51 -07:00
all-revsets.txt spelling: fixes of non-dictionary words 2016-10-17 23:16:55 +02:00
asv.conf.json perf: add asv benchmarks 2016-09-29 10:16:34 +02:00
base-revsets.txt contrib: introduce an all-revsets.txt file 2015-06-16 22:15:30 -07:00
bdiff-torture.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
build-linux-wheels.sh contrib: make build-linux-wheels.sh executable 2017-07-19 13:45:06 -04:00
builddeb build: "make deb" failed when the base path contained spaces 2017-10-11 01:47:00 +02:00
buildrpm build: build deb/rpm independently on config/extensions in the host system 2017-10-17 22:46:08 +02:00
casesmash.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
check-code.py hg: add eden import helper debug command 2019-01-16 19:49:27 -08:00
check-config.py progress: use Condition backed by Rust 2018-10-25 13:12:00 -07:00
check-py3-compat.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
clang-format-blacklist move scm/hg/.clang-format to scm/hg/mercurial/ 2018-05-25 14:35:51 -07:00
debugcmdserver.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
dirstatenonnormalcheck.py dirstate: rename drop to untrack 2018-10-12 09:38:25 -07:00
dockerdeb dockerdeb: pass the rest of the args to the builder script 2016-04-23 12:47:57 -07:00
dockerlib.sh docker: pass proxy arguments to docker process 2017-07-27 13:44:15 +02:00
dockerrpm docker: pass proxy arguments to docker process 2017-07-27 13:44:15 +02:00
dumprevlog py3: make contrib/dumprevlog use print_function 2016-05-13 02:16:32 +05:30
editmerge editmerge: dequote other use of $ED 2015-10-19 21:36:12 -07:00
editmergeps.bat contrib: run editmergeps.ps1 from the same location as editmergeps.bat 2017-05-30 05:56:48 -07:00
editmergeps.ps1 Fix windows hg merge (for editors other than vim and notepad++) 2018-06-01 08:40:11 -07:00
fix-code.py tests: add a test-check test that runs fix-code.py 2018-11-15 18:54:06 -08:00
fixpax.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
genosxversion.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
git-sl contrib: move builddeb to contrib/builddeb_fb/ 2018-01-09 16:44:27 -08:00
hg-new-workdir scripts: move fb-hgext/scripts/ to contrib/ 2018-01-09 16:22:02 -08:00
hg-ssh readonly: add more info to readonly 'Permission denied' errors 2018-05-29 11:56:35 -07:00
hg-test-mode.el hg-test-mode: make exit code highlight work again 2014-08-12 12:53:23 -05:00
hgclient.py Upgrade to 18.5b1 2018-05-30 02:23:58 -07:00
hggitperf.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
hgk hgk: display committer name when set by hg-git 2015-04-03 22:44:25 +02:00
hgperf dispatch: move initialization of sys.std* files 2017-10-02 07:18:24 +01:00
hgweb.fcgi mq: add a warning about uncommitted changes for qfinish 2011-11-10 15:40:34 -06:00
hgweb.wsgi urls: bulk-change primary website URLs 2015-09-30 15:43:49 -05:00
lint.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
linux-wheel-centos5-blacklist packaging: add make target for linux wheels 2017-04-25 16:50:01 +02:00
logo-droplets.svg logo: clean up source file with scour 2010-04-05 14:33:41 -05:00
Makefile.python contrib: disable SSLv3_method() to build old Python with recent libssl 2015-11-07 16:31:04 +09:00
memory.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
mercurial.el en-us: penalize 2012-08-17 13:58:19 -07:00
mercurial.spec rpms: add chg 2017-07-27 16:09:26 +02:00
mq.el Remove FSF mailing address from GPL headers 2012-01-06 16:27:13 +01:00
packagelib.sh build: build deb/rpm independently on config/extensions in the host system 2017-10-17 22:46:08 +02:00
perf.py hg: make contrib/perf.py use correct cmd determination logic 2018-08-17 10:51:47 -07:00
phabricator.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
pylintrc codingstyle: remove trailing spaces in various text files 2013-04-17 03:40:18 +02:00
python3-ratchet.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
python3-whitelist py3: add 32 new tests passing to the whitelist 2017-12-10 05:41:05 +05:30
python-hook-examples.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
revsetbenchmarks.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
scm-prompt.sh remove eden-specific logic from scm-prompt.sh 2018-05-07 16:21:42 -07:00
showstack.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
simplemerge context: add arbitraryfilectx, which can represent files outside the workdir 2017-09-01 11:52:20 -07:00
synthrepo.py Format with black 18.9b0 2018-10-01 07:21:42 -07:00
tcsh_completion contrib: update tcsh_completion for Mercurial 1.8 2011-03-01 07:28:20 +01:00
tcsh_completion_build.sh contrib: update tcsh_completion for Mercurial 1.8 2011-03-01 07:28:20 +01:00
traceprof.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
undumprevlog undumprevlog: update to valid Python 3 syntax 2017-08-22 12:58:51 -04:00
unit.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
utils.py codemod: join the auto-formatter party 2018-05-25 22:17:29 -07:00
with-hg-dev hg: remove facebook-hg-rpms related code 2018-04-13 21:51:20 -07:00
xml.rnc Added RelaxNG schema for hg log XML output format 2009-12-30 02:44:37 +01:00
zsh_completion zsh_completion: add '--partial' flag to completions for 'import' (issue5618) 2017-07-12 10:11:02 +02:00