bookmarks: verify switching bookmarks works properly stable
authorAugie Fackler <durin42@gmail.com>
Wed, 16 Feb 2011 17:36:31 -0600
branchstable
changeset 13433 0b1bbc46516e
parent 13432 5a5bd7614401
child 13434 b5cc838dd999
bookmarks: verify switching bookmarks works properly
tests/test-bookmarks-current.t
--- 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