# HG changeset patch # User Augie Fackler # Date 2011-02-16 23:36:31 # Node ID 0b1bbc46516ea3a022f5b9e3893525d7f951b10d # Parent 5a5bd76144012d2b86cc5466038086ed0b9f7120 bookmarks: verify switching bookmarks works properly diff --git a/tests/test-bookmarks-current.t b/tests/test-bookmarks-current.t --- a/tests/test-bookmarks-current.t +++ b/tests/test-bookmarks-current.t @@ -66,6 +66,17 @@ list bookmarks * 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