tests/narrow-library.sh
author Peter Arrenbrecht <peter@arrenbrecht.ch>
Mon, 11 May 2020 08:13:40 +0200
branchstable
changeset 44776 f71c8eea7161
parent 40900 bcf70058af90
child 46027 d72378f93a44
permissions -rw-r--r--
bash_completion: do not use aliased hg if it sources a script (issue6308) I have an alias that sources a script around hg. Mercurial's bash_completion script tries to use this as its main hg binary. But sourcing a wrapper breaks Bash's completion. So this patch disables using the alias as the hg binary if it starts with "source ". Alias resolution was introduced in rev 191ab08e7099 for users with "alias hg='hg --some_opts'". See https://www.mercurial-scm.org/repo/hg/rev/191ab08e7099

cat >> $HGRCPATH <<EOF
[extensions]
narrow=
[ui]
ssh=python "$RUNTESTDIR/dummyssh"
[experimental]
changegroup3 = True
EOF