view tests/testlib/common.sh @ 6109:f196f76d8683

ci: move update-hg-repo.sh to testlib/ Moving the file from contrib/, which is skipped when building a tarball, means we have one more file "appear" in test-check-sdist.t.
author Anton Shestakov <av6@dwimlabs.net>
date Fri, 03 Dec 2021 09:37:51 +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