tests/testlib/obsmarker-common.sh
author Valentin Gatien-Baron <valentin.gatienbaron@gmail.com>
Sun, 26 Aug 2018 13:09:35 -0400
changeset 39313 6f38284b23f4
parent 32879 1858fc2327ef
child 42968 86f39a89b63e
permissions -rw-r--r--
pager: do not enable when TERM=dumb Before this, running hg in emacs' M-x shell started `less`, which would complain about the terminal not being fully functional. Differential Revision: https://phab.mercurial-scm.org/D4376

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