mirror of
https://github.com/facebook/sapling.git
synced 2024-10-16 19:57:18 +03:00
5851c126a5
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
11 lines
223 B
Bash
11 lines
223 B
Bash
# Make the test use chg if possible
|
|
|
|
if [ -x "$RUNTESTDIR/../contrib/chg/chg" ] && [ -z "$CHGHG" ]; then
|
|
CHGHG="${HG:-hg}"
|
|
export CHGHG
|
|
alias hg="${CHG:-chg}"
|
|
hg() {
|
|
"$RUNTESTDIR/../contrib/chg/chg" "$@"
|
|
}
|
|
fi
|