##// 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 # the cache.
290 # the cache.
291 cachefile.write('\n')
291 cachefile.write('\n')
292 for (name, (node, hist)) in cachetags.iteritems():
292 for (name, (node, hist)) in cachetags.iteritems():
293 for n in hist:
294 cachefile.write("%s %s\n" % (hex(n), name))
293 cachefile.write("%s %s\n" % (hex(node), name))
295 cachefile.write("%s %s\n" % (hex(node), name))
294
296
295 try:
297 try:
@@ -221,6 +221,8 b' Dump cache:'
221 3 6fa450212aeb2a21ed616a54aea39a4a27894cd7 7d3b718c964ef37b89e550ebdafd5789e76ce1b0
221 3 6fa450212aeb2a21ed616a54aea39a4a27894cd7 7d3b718c964ef37b89e550ebdafd5789e76ce1b0
222 2 7a94127795a33c10a370c93f731fd9fea0b79af6 0c04f2a8af31de17fab7422878ee5a2dadbc943d
222 2 7a94127795a33c10a370c93f731fd9fea0b79af6 0c04f2a8af31de17fab7422878ee5a2dadbc943d
223
223
224 bbd179dfa0a71671c253b3ae0aa1513b60d199fa bar
225 bbd179dfa0a71671c253b3ae0aa1513b60d199fa bar
224 78391a272241d70354aa14c874552cad6b51bb42 bar
226 78391a272241d70354aa14c874552cad6b51bb42 bar
225
227
226 Test tag removal:
228 Test tag removal:
@@ -396,6 +398,11 b' Test for issue3911'
396 localtag 1:a0b6fe111088
398 localtag 1:a0b6fe111088
397 globaltag 0:bbd179dfa0a7
399 globaltag 0:bbd179dfa0a7
398
400
401 $ hg tags -v
402 tip 2:5c70a037bb37
403 localtag 1:a0b6fe111088
404 globaltag 0:bbd179dfa0a7
405
399 $ hg tag -r 1 localtag2
406 $ hg tag -r 1 localtag2
400 $ hg tags -v
407 $ hg tags -v
401 tip 3:bbfb8cd42be2
408 tip 3:bbfb8cd42be2
@@ -403,4 +410,10 b' Test for issue3911'
403 localtag 1:a0b6fe111088
410 localtag 1:a0b6fe111088
404 globaltag 0:bbd179dfa0a7
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 $ cd ..
419 $ cd ..
General Comments 0
You need to be logged in to leave comments. Login now