view tests/test-tag @ 1561:9c6d0abdb94e

disallow '\n' and '\r' in tag names add a test for disallowed characters in tag names
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Tue, 29 Nov 2005 22:29:14 +0100
parents 2073e5a71008
children 41366b7d6709
line wrap: on
line source

#!/bin/sh

hg init
echo a > a
hg add a
hg commit -m "test" -d "0 0"
hg history
hg tag -d "0 0" "bleah"
hg history

echo foo >> .hgtags
hg tag -d "0 0" "bleah2" || echo "failed"

hg tag -l 'xx
newline'
hg tag -l 'xx:xx'
true