tests/test-tags
changeset 4494 99f411ba0380
parent 4273 8185a1ca8628
child 4651 7176f278d6f9
equal deleted inserted replaced
4493:50a46ae14efb 4494:99f411ba0380
   103 hg ci -m 'change foo' -d '1000000 0'    # rev 0
   103 hg ci -m 'change foo' -d '1000000 0'    # rev 0
   104 hg tags
   104 hg tags
   105 
   105 
   106 hg tag -d '1000000 0' -r 3 bar         # should complain
   106 hg tag -d '1000000 0' -r 3 bar         # should complain
   107 hg tags
   107 hg tags
       
   108 
       
   109 # test tag rank with 3 heads
       
   110 cd ..
       
   111 hg init t4
       
   112 cd t4
       
   113 echo foo > foo
       
   114 hg add
       
   115 hg ci -m 'add foo' -d '0 0'                # rev 0
       
   116 hg tag -d '0 0' bar                        # rev 1 bar -> 0
       
   117 hg tag -d '0 0' -f bar                     # rev 2 bar -> 1
       
   118 hg up -qC 0
       
   119 hg tag -d '0 0' -fr 2 bar                  # rev 3 bar -> 2
       
   120 hg tags
       
   121 hg up -qC 0
       
   122 hg tag -d '0 0' -m 'retag rev 0' -fr 0 bar # rev 4 bar -> 0, but bar stays at 2
       
   123 echo % bar should still point to rev 2
       
   124 hg tags