tests/test-bookmarks-current.t
branchstable
changeset 16191 7c75924a6926
parent 14189 328422b0380d
child 16742 973671fc0804
--- a/tests/test-bookmarks-current.t	Tue Feb 28 10:06:35 2012 +0100
+++ b/tests/test-bookmarks-current.t	Tue Feb 28 23:47:46 2012 +0200
@@ -125,3 +125,29 @@
   $ hg bookmarks
      X                         0:719295282060
      Z                         0:719295282060
+
+test deleting .hg/bookmarks.current when explicitly updating
+to a revision
+
+  $ echo a >> b
+  $ hg ci -m.
+  $ hg up -q X
+  $ test -f .hg/bookmarks.current
+
+try to update to it again to make sure we don't
+set and then unset it
+
+  $ hg up -q X
+  $ test -f .hg/bookmarks.current
+
+  $ hg up -q 1
+  $ test -f .hg/bookmarks.current
+  [1]
+
+when a bookmark is active, hg up -r . is
+analogus to hg book -i <active bookmark>
+
+  $ hg up -q X
+  $ hg up -q .
+  $ test -f .hg/bookmarks.current
+  [1]