##// END OF EJS Templates
tags: write tag overwriting history also into tag cache file (issue3911)...
FUJIWARA Katsunori -
r19646:335a558f 2.7.1 stable
parent child Browse files
Show More
@@ -290,6 +290,8 b' def _writetagcache(ui, repo, heads, tagf'
290 290 # the cache.
291 291 cachefile.write('\n')
292 292 for (name, (node, hist)) in cachetags.iteritems():
293 for n in hist:
294 cachefile.write("%s %s\n" % (hex(n), name))
293 295 cachefile.write("%s %s\n" % (hex(node), name))
294 296
295 297 try:
@@ -221,6 +221,8 b' Dump cache:'
221 221 3 6fa450212aeb2a21ed616a54aea39a4a27894cd7 7d3b718c964ef37b89e550ebdafd5789e76ce1b0
222 222 2 7a94127795a33c10a370c93f731fd9fea0b79af6 0c04f2a8af31de17fab7422878ee5a2dadbc943d
223 223
224 bbd179dfa0a71671c253b3ae0aa1513b60d199fa bar
225 bbd179dfa0a71671c253b3ae0aa1513b60d199fa bar
224 226 78391a272241d70354aa14c874552cad6b51bb42 bar
225 227
226 228 Test tag removal:
@@ -396,6 +398,11 b' Test for issue3911'
396 398 localtag 1:a0b6fe111088
397 399 globaltag 0:bbd179dfa0a7
398 400
401 $ hg tags -v
402 tip 2:5c70a037bb37
403 localtag 1:a0b6fe111088
404 globaltag 0:bbd179dfa0a7
405
399 406 $ hg tag -r 1 localtag2
400 407 $ hg tags -v
401 408 tip 3:bbfb8cd42be2
@@ -403,4 +410,10 b' Test for issue3911'
403 410 localtag 1:a0b6fe111088
404 411 globaltag 0:bbd179dfa0a7
405 412
413 $ hg tags -v
414 tip 3:bbfb8cd42be2
415 localtag2 1:a0b6fe111088
416 localtag 1:a0b6fe111088
417 globaltag 0:bbd179dfa0a7
418
406 419 $ cd ..
General Comments 0
You need to be logged in to leave comments. Login now