mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 09:17:30 +03:00
25 lines
557 B
Bash
25 lines
557 B
Bash
|
source "$RUNTESTDIR/helpers-testrepo.sh"
|
||
|
|
||
|
# go to repo root
|
||
|
cd "$TESTDIR"/..
|
||
|
|
||
|
# enable lz4revlog if it's required
|
||
|
if grep -q 'lz4revlog' .hg/requires; then
|
||
|
cat >> "$HGRCPATH" <<EOF
|
||
|
[extensions]
|
||
|
lz4revlog=
|
||
|
EOF
|
||
|
fi
|
||
|
|
||
|
# sanity check whether hg actually works or not
|
||
|
if ! hg log -r tip -T '{author}' >/dev/null 2>"$TESTTMP/hg-err-check"; then
|
||
|
echo 'skipped: missing working hg'
|
||
|
exit 80
|
||
|
fi
|
||
|
|
||
|
# hg might work but print "failed to ..." - treat that as an error
|
||
|
if [ -s "$TESTTMP/hg-err-check" ]; then
|
||
|
echo 'skipped: missing working hg'
|
||
|
exit 80
|
||
|
fi
|