view tests/testlib/common.sh @ 6838:514babbbe282

topic: don't recreate stack, we already have it from before This looks like an issue with past merging of 2 separate functions into 1.
author Anton Shestakov <av6@dwimlabs.net>
date Sun, 25 Aug 2024 17:22:40 +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