comparison tests/test-tags @ 4266:fe7f38dda34b

tags: fix abababa case, with test case
author Matt Mackall <mpm@selenic.com>
date Thu, 22 Mar 2007 23:52:50 -0500
parents 3be4785f8994
children 8185a1ca8628
comparison
equal deleted inserted replaced
4247:89075f106414 4266:fe7f38dda34b
78 hg up -C 1 78 hg up -C 1
79 echo >> foo 79 echo >> foo
80 hg ci -m 'change foo 2' -d '1000000 0' # rev 4 80 hg ci -m 'change foo 2' -d '1000000 0' # rev 4
81 hg tags 81 hg tags
82 82
83 # test tag removal
83 hg tag --remove -d '1000000 0' bar 84 hg tag --remove -d '1000000 0' bar
84 hg tip 85 hg tip
85 hg tags 86 hg tags
87
88 # test tag rank
89 cd ..
90 hg init t3
91 cd t3
92 echo foo > foo
93 hg add foo
94 hg ci -m 'add foo' -d '1000000 0' # rev 0
95 hg tag -d '1000000 0' bar # rev 1 bar -> 0
96 hg tag -d '1000000 0' bar # rev 2 bar -> 1
97 hg tag -d '1000000 0' -r 0 bar # rev 3 bar -> 0
98 hg tag -d '1000000 0' -r 1 bar # rev 3 bar -> 1
99 hg tag -d '1000000 0' -r 0 bar # rev 4 bar -> 0
100 hg tags
101 hg co 3
102 echo barbar > foo
103 hg ci -m 'change foo' -d '1000000 0' # rev 0
104 hg tags