view tests/testlib/common.sh @ 6837:dee7d1e2b559

topic: stack index prefix is always "s" now We used to have a different prefix for topic stacks ("t"), but that's no longer the case.
author Anton Shestakov <av6@dwimlabs.net>
date Sun, 25 Aug 2024 17:18:56 +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