comparison tests/test-tags.t @ 19646:335a558f81dc stable 2.7.1

tags: write tag overwriting history also into tag cache file (issue3911) Before this patch, tag overwriting history is not written into tag cache file ".hg/cache/tags". This may give higher priority to local tag than global one, even if the former is overwritten by the latter, because tag overwriting history is used to compare priorities of them (as "rank"). In such cases, "hg tags" invocations using tag cache file shows incorrect tag information. This patch writes tag overwriting history also into tag cache file.
author FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
date Wed, 28 Aug 2013 22:09:53 +0900
parents cb95716da5fe
children f5de208a635c
comparison
equal deleted inserted replaced
19644:bd5c1b49d106 19646:335a558f81dc
219 $ cat .hg/cache/tags 219 $ cat .hg/cache/tags
220 4 0c192d7d5e6b78a714de54a2e9627952a877e25a 0c04f2a8af31de17fab7422878ee5a2dadbc943d 220 4 0c192d7d5e6b78a714de54a2e9627952a877e25a 0c04f2a8af31de17fab7422878ee5a2dadbc943d
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:
227 229
228 $ hg tag --remove bar # rev 5 230 $ hg tag --remove bar # rev 5
394 $ hg tags -v 396 $ hg tags -v
395 tip 2:5c70a037bb37 397 tip 2:5c70a037bb37
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
402 localtag2 1:a0b6fe111088 409 localtag2 1:a0b6fe111088
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 ..