tests/testlib/obsmarker-common.sh
author Gregory Szorc <gregory.szorc@gmail.com>
Mon, 26 Feb 2018 13:34:35 -0800
changeset 36453 bfb4494f846d
parent 32879 1858fc2327ef
child 42968 86f39a89b63e
permissions -rw-r--r--
bookmarks: write bookmarks file deterministically Bookmarks are internally stored as an unsorted dictionary. Let's at least write out the bookmarks file in a deterministic order so it is easier to test, diff, etc. Differential Revision: https://phab.mercurial-scm.org/D2469

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