mirror of
https://github.com/facebook/sapling.git
synced 2024-10-06 14:58:03 +03:00
tests: fix helpers-usechg.sh
Summary: I noticed some tests were running slower without chg. Upon investigation, `alias hg=...` seems stop working. Similar to D7563731, let's define functions explicitly instead. Reviewed By: singhsrb Differential Revision: D7964291 fbshipit-source-id: 08a69c865ffef6be7e84dd66a7cece9284b94e60
This commit is contained in:
parent
cef17b6c33
commit
5851c126a5
@ -4,4 +4,7 @@ if [ -x "$RUNTESTDIR/../contrib/chg/chg" ] && [ -z "$CHGHG" ]; then
|
|||||||
CHGHG="${HG:-hg}"
|
CHGHG="${HG:-hg}"
|
||||||
export CHGHG
|
export CHGHG
|
||||||
alias hg="${CHG:-chg}"
|
alias hg="${CHG:-chg}"
|
||||||
|
hg() {
|
||||||
|
"$RUNTESTDIR/../contrib/chg/chg" "$@"
|
||||||
|
}
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user