2005-07-29 18:19:43 +04:00
|
|
|
#!/bin/sh
|
2005-06-22 05:47:28 +04:00
|
|
|
|
|
|
|
hg init
|
|
|
|
echo a > a
|
|
|
|
hg add a
|
2006-03-13 15:05:41 +03:00
|
|
|
hg commit -m "test" -d "1000000 0"
|
2005-06-22 05:47:28 +04:00
|
|
|
hg history
|
2006-03-13 15:05:41 +03:00
|
|
|
hg tag -d "1000000 0" "bleah"
|
2005-06-22 05:47:28 +04:00
|
|
|
hg history
|
|
|
|
|
|
|
|
echo foo >> .hgtags
|
2006-03-13 15:05:41 +03:00
|
|
|
hg tag -d "1000000 0" "bleah2" || echo "failed"
|
|
|
|
hg tag -d "1000000 0" -r 0 "bleah2" 1 || echo "failed"
|
2005-06-22 05:47:28 +04:00
|
|
|
|
2005-12-27 21:52:10 +03:00
|
|
|
hg revert .hgtags
|
2006-03-13 15:05:41 +03:00
|
|
|
hg tag -d "1000000 0" -r 0 "bleah0"
|
|
|
|
hg tag -l -d "1000000 0" "bleah1" 1
|
2005-12-27 21:52:10 +03:00
|
|
|
|
|
|
|
cat .hgtags
|
|
|
|
cat .hg/localtags
|
|
|
|
|
2006-07-21 03:40:07 +04:00
|
|
|
hg update 0
|
|
|
|
hg tag -d "1000000 0" "foobar"
|
|
|
|
cat .hgtags
|
|
|
|
cat .hg/localtags
|
|
|
|
|
2005-11-30 00:29:14 +03:00
|
|
|
hg tag -l 'xx
|
|
|
|
newline'
|
|
|
|
hg tag -l 'xx:xx'
|
|
|
|
true
|