comparison tests/test-tags @ 5657:47915bf68c44

Properly check tag's existence as a local/global tag when removing it.
author Osku Salerma <osku@iki.fi>
date Sun, 09 Dec 2007 16:32:05 +0900
parents 453acf64f71f
children ae3089cefaab
comparison
equal deleted inserted replaced
5656:b940260c4291 5657:47915bf68c44
124 hg tags 124 hg tags
125 hg up -qC 0 125 hg up -qC 0
126 hg tag -m 'retag rev 0' -fr 0 bar # rev 4 bar -> 0, but bar stays at 2 126 hg tag -m 'retag rev 0' -fr 0 bar # rev 4 bar -> 0, but bar stays at 2
127 echo % bar should still point to rev 2 127 echo % bar should still point to rev 2
128 hg tags 128 hg tags
129
130
131 # test that removing global/local tags does not get confused when trying
132 # to remove a tag of type X which actually only exists as a type Y
133 cd ..
134 hg init t5
135 cd t5
136 echo foo > foo
137 hg add
138 hg ci -m 'add foo' # rev 0
139
140 hg tag -r 0 -l localtag
141 hg tag --remove localtag
142
143 hg tag -r 0 globaltag
144 hg tag --remove -l globaltag
145 exit 0