Mercurial > hg-stable
diff tests/test-tags @ 1986:719cf07b076d
add checking for invalid entries in tag files
safely parse the differents tag files, output warning
when parsing an invalid entry.
author | Benoit Boissinot <benoit.boissinot@ens-lyon.org> |
---|---|
date | Wed, 22 Mar 2006 05:30:47 +0100 |
parents | 7544700fd931 |
children | e506c14382fd |
line wrap: on
line diff
--- a/tests/test-tags Tue Mar 21 15:33:29 2006 +0100 +++ b/tests/test-tags Wed Mar 22 05:30:47 2006 +0100 @@ -31,3 +31,13 @@ hg id hg status +hg commit -m "merge" -d "1000000 0" +# invalid tags +echo "spam" >> .hgtags +echo >> .hgtags +echo "foo bar" >> .hgtags +echo "$T invalid" | sed "s/..../a5a5/" >> .hg/localtags +hg commit -m "tags" -d "1000000 0" +hg tags +hg tip +