comparison tests/test-tag @ 1933:7544700fd931

Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero. Some systems show "Thu Jan 01" instead of "Thu Jan 1", which breaks tests. Using "1000000" yields "Mon Jan 12 13:46:40 1970", which looks the same on all systems.
author Thomas Arendsen Hein <thomas@intevation.de>
date Mon, 13 Mar 2006 13:05:41 +0100
parents b7fc961507db
children 46182568b4ce
comparison
equal deleted inserted replaced
1932:82995896d5af 1933:7544700fd931
1 #!/bin/sh 1 #!/bin/sh
2 2
3 hg init 3 hg init
4 echo a > a 4 echo a > a
5 hg add a 5 hg add a
6 hg commit -m "test" -d "0 0" 6 hg commit -m "test" -d "1000000 0"
7 hg history 7 hg history
8 hg tag -d "0 0" "bleah" 8 hg tag -d "1000000 0" "bleah"
9 hg history 9 hg history
10 10
11 echo foo >> .hgtags 11 echo foo >> .hgtags
12 hg tag -d "0 0" "bleah2" || echo "failed" 12 hg tag -d "1000000 0" "bleah2" || echo "failed"
13 hg tag -d "0 0" -r 0 "bleah2" 1 || echo "failed" 13 hg tag -d "1000000 0" -r 0 "bleah2" 1 || echo "failed"
14 14
15 hg revert .hgtags 15 hg revert .hgtags
16 hg tag -d "0 0" -r 0 "bleah0" 16 hg tag -d "1000000 0" -r 0 "bleah0"
17 hg tag -l -d "0 0" "bleah1" 1 17 hg tag -l -d "1000000 0" "bleah1" 1
18 18
19 cat .hgtags 19 cat .hgtags
20 cat .hg/localtags 20 cat .hg/localtags
21 21
22 hg tag -l 'xx 22 hg tag -l 'xx