sapling/contrib
Jun Wu 93e167796f chg: detect chg started by chg
Sometimes people may create a symbol link from hg to chg, or write a wrapper
script named hg calling chg. Without $HG and $CHGHG set, this will lead to
chg executes itself causing deadlock. The user will notice chg hangs for some
time and aborts with a timed out message, without knowing the root cause and
how to solve it.

This patch sets a dummy environment variable before executing hg to detect
this situation, and print a fatal message with some possible solutions.

CHGINTERNALMARK is set by chg client to detect the situation that chg is
started by chg. It is temporary and should be dropped to avoid possible
side effects.
2016-02-26 14:13:12 +00:00
..
chg chg: detect chg started by chg 2016-02-26 14:13:12 +00:00
debian debian: install bash completion as hg and not mercurial (issue4900) 2015-10-14 14:53:15 -04:00
docker dockerdeb: rules to build a debian package using docker 2015-05-06 13:15:39 -04:00
hgfixes fix_bytes: loosen blacklist matching requirements 2014-05-10 14:54:39 -07:00
hgsh backout of e4cb9628354c 2011-01-27 11:15:08 +01:00
macosx urls: bulk-change primary website URLs 2015-09-30 15:43:49 -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 urls: bulk-change primary website URLs 2015-09-30 15:43:49 -05:00
win32 hgwebdir_wsgi: update script and expand help 2016-02-19 17:50:28 +01:00
wix copyright: update to 2016 2016-01-21 21:15:52 +00:00
all-revsets.txt revset: improves time complexity of 'roots(xxx)' 2015-06-22 10:19:12 -07:00
base-revsets.txt contrib: introduce an all-revsets.txt file 2015-06-16 22:15:30 -07:00
bash_completion bash_completion: add -p|--patch|--stat support for shelve 2015-11-10 19:52:30 +08:00
builddeb builddeb: read default distribution and codename from lsb_release 2015-11-25 18:07:33 +08:00
buildrpm buildrpm: use bash shebang, since we use bash features in the script 2016-01-15 16:16:25 +01:00
casesmash.py cleanup: drop unused variables and an unused import 2013-07-01 20:48:56 +02:00
check-code.py check-code: allow old style class with special comments 2016-02-24 18:42:14 +00:00
check-commit check-commit: omit whitespace 2016-02-10 22:44:28 +09:00
check-config.py tests: execute check-config.py without xargs 2016-02-05 22:32:05 +09:00
check-py3-compat.py contrib: add execute bit for check-py3-compat.py 2015-12-22 07:58:21 +00:00
debugcmdserver.py cleanup: "raise SomeException()" -> "raise SomeException" 2012-05-12 16:00:58 +02:00
debugshell.py debugshell: disable demand importer when importing debugger 2016-01-11 18:16:38 -08:00
dirstatenonnormalcheck.py cleanup: remove superfluous space after space after equals (python) 2015-12-31 08:16:59 +00:00
dockerdeb builddeb: add --distid option to specify Distributor ID 2015-11-25 15:15:03 +08:00
dockerlib.sh dockerlib: short form for non-unique uid/gid for CentOS 5 compat (issue4977) 2015-12-07 17:39:31 +01:00
dockerrpm buildrpm: move creation of RPM directories from dockerrpm 2016-01-07 06:44:37 +01:00
dumprevlog rename util.set_binary to setbinary 2011-05-06 15:25:35 +02:00
editmerge editmerge: dequote other use of $ED 2015-10-19 21:36:12 -07:00
fixpax.py contrib: add execute bit for fixpax.py 2015-12-22 07:58:44 +00:00
hg-ssh misc: use modern exception syntax 2016-02-10 22:44:29 +09:00
hg-test-mode.el hg-test-mode: make exit code highlight work again 2014-08-12 12:53:23 -05:00
hgclient.py test-commandserver: add connector for unix domain socket server 2014-09-27 19:18:20 +09:00
hgk hgk: display committer name when set by hg-git 2015-04-03 22:44:25 +02:00
hgperf contrib: add "hgperf" command to measure performance of commands easily 2014-02-15 19:51:20 +09: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
import-checker.py import-checker: list package directory as stdlib module 2015-12-27 23:37:14 +09: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 with: use context manager for file I/O in memusage 2016-01-15 13:14:45 -08:00
mercurial.el en-us: penalize 2012-08-17 13:58:19 -07:00
mercurial.spec mercurial.spec: remove execute bit 2015-12-22 10:58:47 +00:00
mq.el Remove FSF mailing address from GPL headers 2012-01-06 16:27:13 +01:00
packagelib.sh packaging: rework version detection and declaration (issue4912) 2015-10-26 14:19:37 -04:00
perf.py revlog: return offset from _chunkraw() 2016-01-05 19:51:51 -08:00
pylintrc codingstyle: remove trailing spaces in various text files 2013-04-17 03:40:18 +02:00
python-hook-examples.py misc: replace .parents()[0] with p1() 2011-04-04 16:21:59 -05:00
revsetbenchmarks.py revsetbenchmark: handle exception case 2016-02-10 12:39:25 -08:00
showstack.py contrib: add showstack extension 2015-08-28 16:59:31 -05:00
simplemerge misc: use modern exception syntax 2016-02-10 22:44:29 +09:00
synthrepo.py error: get Abort from 'error' instead of 'util' 2015-10-08 12:55:45 -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
undumprevlog transaction: pass a vfs map to the transaction 2014-10-17 20:49:39 -07:00
xml.rnc Added RelaxNG schema for hg log XML output format 2009-12-30 02:44:37 +01:00
zsh_completion debugnamecomplete: rename from debuglabelcomplete 2014-10-17 13:41:29 -07:00