test-tag
57 lines
| 1.3 KiB
| text/plain
|
TextLexer
/ tests / test-tag
Thomas Arendsen Hein
|
r800 | #!/bin/sh | ||
mpm@selenic.com
|
r401 | |||
hg init | ||||
echo a > a | ||||
hg add a | ||||
Thomas Arendsen Hein
|
r1933 | hg commit -m "test" -d "1000000 0" | ||
mpm@selenic.com
|
r401 | hg history | ||
Thomas Arendsen Hein
|
r1933 | hg tag -d "1000000 0" "bleah" | ||
mpm@selenic.com
|
r401 | hg history | ||
echo foo >> .hgtags | ||||
Thomas Arendsen Hein
|
r1933 | hg tag -d "1000000 0" "bleah2" || echo "failed" | ||
mpm@selenic.com
|
r401 | |||
Benoit Boissinot
|
r1596 | hg revert .hgtags | ||
John Coomes
|
r6321 | hg tag -d "1000000 0" -r 0 x y z y y z || echo "failed" | ||
hg tag -d "1000000 0" tap nada dot tip null . || echo "failed" | ||||
hg tag -d "1000000 0" "bleah" || echo "failed" | ||||
hg tag -d "1000000 0" "blecch" "bleah" || echo "failed" | ||||
hg tag -d "1000000 0" --remove "blecch" || echo "failed" | ||||
hg tag -d "1000000 0" --remove "bleah" "blecch" "blough" || echo "failed" | ||||
Thomas Arendsen Hein
|
r1933 | hg tag -d "1000000 0" -r 0 "bleah0" | ||
John Coomes
|
r6321 | hg tag -l -d "1000000 0" -r 1 "bleah1" | ||
hg tag -d "1000000 0" gack gawk gorp | ||||
hg tag -d "1000000 0" -f gack | ||||
hg tag -d "1000000 0" --remove gack gorp | ||||
Benoit Boissinot
|
r1596 | |||
cat .hgtags | ||||
cat .hg/localtags | ||||
Benoit Boissinot
|
r2647 | hg update 0 | ||
hg tag -d "1000000 0" "foobar" | ||||
cat .hgtags | ||||
cat .hg/localtags | ||||
Benoit Boissinot
|
r1561 | hg tag -l 'xx | ||
newline' | ||||
hg tag -l 'xx:xx' | ||||
Bryan O'Sullivan
|
r4892 | |||
echo % issue 601 | ||||
Thomas Arendsen Hein
|
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 | ||||
Bryan O'Sullivan
|
r4892 | cat .hg/localtags | ||
hg tag -l localnewline | ||||
cat .hg/localtags | ||||
Thomas Arendsen Hein
|
r4933 | python << EOF | ||
f = file('.hgtags'); last = f.readlines()[-1][:-1]; f.close() | ||||
f = file('.hgtags', 'w'); f.write(last); f.close() | ||||
EOF | ||||
Bryan O'Sullivan
|
r4892 | hg ci -d '1000000 0' -m'broken manual edit of .hgtags' | ||
cat .hgtags | ||||
hg tag -d '1000000 0' newline | ||||
cat .hgtags | ||||