diff tests/test-bookmarks.t @ 43601:a80d5ddecc2d

bookmarks: accept explicit -r 'wdir()' when adding new bookmarks (issue6218) Even though the bookmark semantics can't be fully encoded to the virtual working changeset idea, the active bookmark can be considered a bookmark of the working revision. Before, 'tgt' was None, and changes=[(bm, None)] means deleting a bookmark named 'bm'.
author Yuya Nishihara <yuya@tcha.org>
date Sat, 09 Nov 2019 12:55:56 +0900
parents 2a8cd7edf409
children 3b50de911200
line wrap: on
line diff
--- a/tests/test-bookmarks.t	Sat Nov 09 12:44:00 2019 +0900
+++ b/tests/test-bookmarks.t	Sat Nov 09 12:55:56 2019 +0900
@@ -619,6 +619,16 @@
      x  y                      2:db815d6d32e6
   $ hg bookmark Z
 
+bookmark wdir to activate it (issue6218)
+
+  $ hg bookmark -d Z
+  $ hg bookmark -r 'wdir()' Z
+  $ hg bookmark -l
+     X2                        1:925d80f479bb
+     Y                         2:db815d6d32e6
+   * Z                         2:db815d6d32e6
+     x  y                      2:db815d6d32e6
+
 test clone
 
   $ hg bookmark -r 2 -i @