view tests/testlib/obsmarker-common.sh @ 44848:7e7080ab8ba8

grep: improve test coverage Differential Revision: https://phab.mercurial-scm.org/D8542
author Valentin Gatien-Baron <valentin.gatienbaron@gmail.com>
date Sun, 17 May 2020 12:49:12 -0400
parents 86f39a89b63e
children
line wrap: on
line source

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