tests/test-issue352
author Thomas Arendsen Hein <thomas@intevation.de>
Tue, 26 Jun 2007 20:37:15 +0200
changeset 4729 9881abfc0e44
parent 4292 b90e323a4781
child 5091 2184378b20b5
permissions -rwxr-xr-x
Catch illegal boolean values in hgrc nicely. With hg 0.9.3 the section and parameter name wasn't printed, with hg 0.9.4 there was a traceback for ValueError.

#!/bin/sh
# http://www.selenic.com/mercurial/bts/issue352

hg init foo
cd foo

A=`printf 'he\rllo'`

echo foo > "$A"
hg add
hg ci -A -m m
rm "$A"

echo foo > "hell
o"
hg add
hg ci -A -m m

echo foo > "$A"
hg debugwalk

exit 0