tests/testlib/obsmarker-common.sh
author Pulkit Goyal <7895pulkit@gmail.com>
Thu, 01 Mar 2018 23:54:52 +0530
changeset 36522 6e90c59b6da1
parent 32897 1858fc2327ef
child 42970 86f39a89b63e
permissions -rw-r--r--
py3: use pycompat.bytestr() to convert error instances to bytes Differential Revision: https://phab.mercurial-scm.org/D2516

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