test-tag
47 lines
| 949 B
| text/plain
|
TextLexer
/ tests / test-tag
|
r800 | #!/bin/sh | ||
|
r401 | |||
hg init | ||||
echo a > a | ||||
hg add a | ||||
|
r1933 | hg commit -m "test" -d "1000000 0" | ||
|
r401 | hg history | ||
|
r1933 | hg tag -d "1000000 0" "bleah" | ||
|
r401 | hg history | ||
echo foo >> .hgtags | ||||
|
r1933 | hg tag -d "1000000 0" "bleah2" || echo "failed" | ||
hg tag -d "1000000 0" -r 0 "bleah2" 1 || echo "failed" | ||||
|
r401 | |||
|
r1596 | hg revert .hgtags | ||
|
r1933 | hg tag -d "1000000 0" -r 0 "bleah0" | ||
hg tag -l -d "1000000 0" "bleah1" 1 | ||||
|
r1596 | |||
cat .hgtags | ||||
cat .hg/localtags | ||||
|
r2647 | hg update 0 | ||
hg tag -d "1000000 0" "foobar" | ||||
cat .hgtags | ||||
cat .hg/localtags | ||||
|
r1561 | hg tag -l 'xx | ||
newline' | ||||
hg tag -l 'xx:xx' | ||||
|
r4932 | |||
echo % issue 601 | ||||
|
r4933 | python << EOF | ||
f = file('.hg/localtags'); last = f.readlines()[-1][:-1]; f.close() | ||||
f = file('.hg/localtags', 'w'); f.write(last); f.close() | ||||
EOF | ||||
|
r4932 | cat .hg/localtags | ||
hg tag -l localnewline | ||||
cat .hg/localtags | ||||
|
r4933 | python << EOF | ||
f = file('.hgtags'); last = f.readlines()[-1][:-1]; f.close() | ||||
f = file('.hgtags', 'w'); f.write(last); f.close() | ||||
EOF | ||||
|
r4932 | hg ci -d '1000000 0' -m'broken manual edit of .hgtags' | ||
cat .hgtags | ||||
hg tag -d '1000000 0' newline | ||||
cat .hgtags | ||||