view tests/testlib/common.sh @ 6043:b1a04ff0f99e

tests: add \n to glog alias, just in case It doesn't change log output currently, but might do it when --patch is given.
author Anton Shestakov <av6@dwimlabs.net>
date Wed, 22 Sep 2021 02:33:50 +0300
parents 1cbafebe874b
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