view tests/testlib/common.sh @ 6602:33d5071edd05

packaging: require mercurial >= 5.6 for .deb packages
author Anton Shestakov <av6@dwimlabs.net>
date Thu, 26 Oct 2023 15:16:44 -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