tests/testlib/obsmarker-common.sh
author Gregory Szorc <gregory.szorc@gmail.com>
Sun, 20 Feb 2022 15:35:09 -0700
changeset 48879 9987d14ad63f
parent 42968 86f39a89b63e
permissions -rw-r--r--
py2: drop some more from __future__ statements These are no longer needed after dropping support for Python 2. Differential Revision: https://phab.mercurial-scm.org/D12258

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]
debugobsolete=debugobsolete -d '0 0'
EOF