tests/testlib/obsmarker-common.sh
author Yuya Nishihara <yuya@tcha.org>
Tue, 06 Mar 2018 02:43:17 -0600
changeset 36797 d4c760c997cd
parent 32879 1858fc2327ef
child 42968 86f39a89b63e
permissions -rw-r--r--
py3: drop encoding.strio() Its buffered nature makes TextIOWrapper unsuitable for temporarily wrapping bytes I/O.

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