view tests/testlib/common.sh @ 6619:1ee748766685

evolve: ignore attribute-error in compat code for simplemerge.Merge3Text
author Anton Shestakov <av6@dwimlabs.net>
date Thu, 28 Dec 2023 14:21:34 -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