Mercurial > hg
diff tests/test-tags @ 4266:fe7f38dda34b
tags: fix abababa case, with test case
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Thu, 22 Mar 2007 23:52:50 -0500 |
parents | 3be4785f8994 |
children | 8185a1ca8628 |
line wrap: on
line diff
--- a/tests/test-tags Mon Mar 19 19:07:40 2007 -0300 +++ b/tests/test-tags Thu Mar 22 23:52:50 2007 -0500 @@ -80,6 +80,25 @@ hg ci -m 'change foo 2' -d '1000000 0' # rev 4 hg tags +# test tag removal hg tag --remove -d '1000000 0' bar hg tip hg tags + +# test tag rank +cd .. +hg init t3 +cd t3 +echo foo > foo +hg add foo +hg ci -m 'add foo' -d '1000000 0' # rev 0 +hg tag -d '1000000 0' bar # rev 1 bar -> 0 +hg tag -d '1000000 0' bar # rev 2 bar -> 1 +hg tag -d '1000000 0' -r 0 bar # rev 3 bar -> 0 +hg tag -d '1000000 0' -r 1 bar # rev 3 bar -> 1 +hg tag -d '1000000 0' -r 0 bar # rev 4 bar -> 0 +hg tags +hg co 3 +echo barbar > foo +hg ci -m 'change foo' -d '1000000 0' # rev 0 +hg tags