tests/testlib/common.sh
author Pulkit Goyal <7895pulkit@gmail.com>
Mon, 28 Aug 2017 17:16:16 +0200
changeset 2869 b629874ccaac
parent 2119 e1c26c632b6d
permissions -rw-r--r--
topics: allow use a --current when setting a topic This patch allow to use the current flag which can be used by user set existing revs to the current topic.

. $TESTDIR/testlib/pythonpath.sh

mkcommit() {
   echo "$1" > "$1"
   hg add "$1"
   hg ci -m "$1"
}

getid() {
   hg log --hidden --template '{node}\n' --rev "$1"
}

cat >> $HGRCPATH <<EOF
[alias]
debugobsolete=debugobsolete -d '0 0'
EOF