tests/testlib/obsmarker-common.sh
author Yuya Nishihara <yuya@tcha.org>
Sun, 29 Jul 2018 22:04:01 +0900
changeset 39600 87428152e820
parent 32879 1858fc2327ef
child 42968 86f39a89b63e
permissions -rw-r--r--
templatekw: add experimental {status} keyword This is another example of fctx-based keywords. I think this is somewhat useful in log templates.

mkcommit() {
   echo "$1" > "$1"
   hg add "$1"
   hg ci -m "$1"
}

getid() {
   hg log --hidden --template '{node}\n' --rev "$1"
}

cat >> $HGRCPATH <<EOF
[alias]
debugobsolete=debugobsolete -d '0 0'
EOF