tests/test-bookmarks-current.t
branchstable
changeset 13433 0b1bbc46516e
parent 13416 5431b3f3e52e
child 13469 07a6460f829a
--- a/tests/test-bookmarks-current.t	Thu Feb 17 09:20:44 2011 +0100
+++ b/tests/test-bookmarks-current.t	Wed Feb 16 17:36:31 2011 -0600
@@ -66,6 +66,17 @@
    * Y                         0:719295282060
      Z                         -1:000000000000
 
+Verify that switching to Z updates the current bookmark:
+  $ hg update Z
+  0 files updated, 0 files merged, 1 files removed, 0 files unresolved
+  $ hg bookmark
+     Y                         0:719295282060
+   * Z                         -1:000000000000
+
+Switch back to Y for the remaining tests in this file:
+  $ hg update Y
+  1 files updated, 0 files merged, 0 files removed, 0 files unresolved
+
 delete bookmarks
 
   $ hg bookmark -d Y