tests/test-strict
author Christian Ebert <blacktrash@gmx.net>
Wed, 09 Apr 2008 14:12:32 +0200
changeset 6506 850071c017fa
parent 2992 4e815ee377fd
child 8167 6c82beaaa11a
permissions -rwxr-xr-x
keyword: check for '\0' in entire data before acting util.binary might not be safe enough, as it fails eg. on certain pdf files (issue1066).

#!/bin/sh

hg init

echo a > a
hg ci -d '0 0' -Ama

hg an a

echo "[ui]" >> $HGRCPATH
echo "strict=True" >> $HGRCPATH

hg an a
hg annotate a

echo % should succeed - up is an alias, not an abbreviation

hg up