view tests/testlib/common.sh @ 6295:e81b3516242f

topic: update a comment about branch:topic, use the modern version
author Anton Shestakov <av6@dwimlabs.net>
date Wed, 27 Jul 2022 20:23:08 +0400
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