view tests/testlib/common.sh @ 6177:5b3a757e4c32 mercurial-6.0

ci: no need to pull hg-committed on compatibility branches
author Anton Shestakov <av6@dwimlabs.net>
date Tue, 22 Feb 2022 07:18:19 +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