view tests/testlib/obsmarker-common.sh @ 45456:65960fe9a769

test-simple-update: add test for -d DATE option I couldn't find any tests for cmdutil.finddate() except for the abort case.
author Yuya Nishihara <yuya@tcha.org>
date Sun, 13 Sep 2020 18:14:51 +0900
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