tests/testlib/common.sh
author Boris Feld <boris.feld@octobus.net>
Wed, 10 May 2017 12:26:33 +0200
changeset 2336 93a37e13424f
parent 2119 e1c26c632b6d
permissions -rw-r--r--
obshistory: add a debugobshistory command to show obs history of a revs Add the debugobshistory command that accept a revision range and display the obsolescence containing each revision in the range. For the moment, it only displays the predecessors.

. $TESTDIR/testlib/pythonpath.sh

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