[PATCH] bookmarks: test that bare update forwards active bookmark

Kevin Bullock kbullock+mercurial at ringworld.org
Tue May 15 15:53:43 CDT 2012


# HG changeset patch
# User Kevin Bullock <kbullock at ringworld.org>
# Date 1336248746 18000
# Node ID c93170a02dc840f2fe64a05e7f9a3363cd55ddd0
# Parent  99f369f5a8dbc192cd520aece8437f3182b1ac50
bookmarks: test that bare update forwards active bookmark

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
@@ -126,6 +126,23 @@ deactivate current bookmark while renami
      X                         0:719295282060
      Z                         0:719295282060
 
+bare update moves the active bookmark forward
+
+  $ echo a > a
+  $ hg ci -Am1
+  adding a
+  $ hg update X
+  0 files updated, 0 files merged, 1 files removed, 0 files unresolved
+  $ hg bookmarks
+   * X                         0:719295282060
+     Z                         0:719295282060
+  $ hg update
+  1 files updated, 0 files merged, 0 files removed, 0 files unresolved
+  updating bookmark X
+  $ hg bookmarks
+   * X                         1:cc586d725fbe
+     Z                         0:719295282060
+
 test deleting .hg/bookmarks.current when explicitly updating
 to a revision
 


More information about the Mercurial-devel mailing list