tests/testlib/obsmarker-common.sh
author Matt Harbison <matt_harbison@yahoo.com>
Sun, 29 Dec 2019 20:32:56 -0500
changeset 44028 42a897bf678c
parent 42968 86f39a89b63e
permissions -rw-r--r--
resourceutil: implement `is_resource()` This will be needed when iterating resources. Differential Revision: https://phab.mercurial-scm.org/D7773

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