view tests/testlib/common.sh @ 6063:1a13ac9ef30a mercurial-5.8

test-compat: back out test changes from 65d4e47d7f26
author Anton Shestakov <av6@dwimlabs.net>
date Sun, 10 Oct 2021 10:52:01 +0300
parents b1a04ff0f99e
children
line wrap: on
line source

. $TESTDIR/testlib/pythonpath.sh

mkcommit() {
   name="$1"
   shift
   echo "$name" > "$name"
   hg add "$name"
   hg ci -m "$name" "$@"
}

getid() {
   hg log --hidden --template '{node}\n' --rev "$1"
}

cat >> $HGRCPATH << EOF
[alias]
glog = log -GT "{rev}:{node|short} {desc}\n ({bookmarks}) {phase} {instabilities}\n"
EOF