tests/testlib/obsmarker-common.sh
author Matt Harbison <matt_harbison@yahoo.com>
Fri, 09 Oct 2020 00:33:50 -0400
changeset 45713 04de8a1ec08f
parent 42970 86f39a89b63e
permissions -rw-r--r--
fix: update commit hash references in the new commits Differential Revision: https://phab.mercurial-scm.org/D9183

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