diff tests/test-tags @ 4494:99f411ba0380

use .extend instead of .append in readtags
author Alexis S. L. Carvalho <alexis@cecm.usp.br>
date Mon, 04 Jun 2007 00:24:48 -0300
parents 8185a1ca8628
children 7176f278d6f9
line wrap: on
line diff
--- a/tests/test-tags
+++ b/tests/test-tags
@@ -104,4 +104,21 @@ hg ci -m 'change foo' -d '1000000 0'    
 hg tags
 
 hg tag -d '1000000 0' -r 3 bar         # should complain
-hg tags
\ No newline at end of file
+hg tags
+
+# test tag rank with 3 heads
+cd ..
+hg init t4
+cd t4
+echo foo > foo
+hg add
+hg ci -m 'add foo' -d '0 0'                # rev 0
+hg tag -d '0 0' bar                        # rev 1 bar -> 0
+hg tag -d '0 0' -f bar                     # rev 2 bar -> 1
+hg up -qC 0
+hg tag -d '0 0' -fr 2 bar                  # rev 3 bar -> 2
+hg tags
+hg up -qC 0
+hg tag -d '0 0' -m 'retag rev 0' -fr 0 bar # rev 4 bar -> 0, but bar stays at 2
+echo % bar should still point to rev 2
+hg tags