sapling/eden/scm/tests/helpers-usechg.sh
Adam Simpkins ab3a7cb21f Move fb-mercurial sources into an eden/scm subdirectory.
Summary:
In preparation for merging fb-mercurial sources to the Eden repository,
move everything from the top-level directory into an `eden/scm`
subdirectory.
2019-11-13 16:04:48 -08:00

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