tests/testlib/obsmarker-common.sh
author Simon Sapin <simon-commits@exyr.org>
Wed, 02 Dec 2020 08:23:31 +0100
changeset 46034 0c02c2a0badb
parent 42968 86f39a89b63e
permissions -rw-r--r--
rhg: add a test with persistent-nodemap Differential Revision: https://phab.mercurial-scm.org/D9519

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