tests/testlib/obsmarker-common.sh
author Gregory Szorc <gregory.szorc@gmail.com>
Tue, 12 Feb 2019 14:29:56 -0800
changeset 41709 97e2442a4595
parent 32879 1858fc2327ef
child 42968 86f39a89b63e
permissions -rw-r--r--
py3: port tinyproxy.py to work with Python 3 There were various str/bytes mismatches in the code. This caused the proxy server to misbehave at run-time. The manifestation was typically premature socket disconnect from the perspective of the client. Differential Revision: https://phab.mercurial-scm.org/D5951

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