Mercurial > hg > mercurial-source
diff tests/test-tags @ 3577:7f7425306925
Correct optimization from 3464f5e77f34; add a test.
If there are two (or more) heads that point to the same .hgtags
node, we can safely skip parsing the file in all but the last head.
(In 3464f5e77f34, we were parsing the file in the first head and
skipping all the others.)
author | Alexis S. L. Carvalho <alexis@cecm.usp.br> |
---|---|
date | Sat, 28 Oct 2006 23:37:59 -0300 |
parents | fb493241d7f6 |
children | 26314500a5e1 |
line wrap: on
line diff
--- a/tests/test-tags +++ b/tests/test-tags @@ -60,3 +60,19 @@ hg tags hg tip +# tags from later heads override previous ones +cd .. +hg init t2 +cd t2 +echo foo > foo +hg add foo +hg ci -m 'add foo' -d '1000000 0' # rev 0 +hg tag -d '1000000 0' bar # rev 1 +echo >> foo +hg ci -m 'change foo 1' -d '1000000 0' # rev 2 +hg up -C 1 +hg tag -r 1 -d '1000000 0' bar # rev 3 +hg up -C 1 +echo >> foo +hg ci -m 'change foo 2' -d '1000000 0' # rev 4 +hg tags