diff tests/test-bookmarks.t @ 19147:5b1835485442

bookmarks: allow bookmark command to take multiple arguments This change allows setting or deleting multiple bookmarks at once. If more than one is being set and --inactive is not given, the first one is made active.
author Kevin Bullock <kbullock@ringworld.org>
date Thu, 02 May 2013 21:28:18 -0500
parents 23f785b38af3
children f37b5a17e6a0
line wrap: on
line diff
--- a/tests/test-bookmarks.t	Sun May 05 18:51:34 2013 -0500
+++ b/tests/test-bookmarks.t	Thu May 02 21:28:18 2013 -0500
@@ -168,11 +168,14 @@
   $ hg bookmark -d REVSET
   $ hg bookmark -d TIP
 
-rename without new name
+rename without new name or multiple names
 
   $ hg bookmark -m Y
   abort: new bookmark name required
   [255]
+  $ hg bookmark -m Y Y2 Y3
+  abort: only one new bookmark name allowed
+  [255]
 
 delete without name
 
@@ -417,8 +420,9 @@
      a@                        2:db815d6d32e6
      x  y                      2:db815d6d32e6
 
-  $ hg bookmark -d @
-  $ hg bookmark -d a@
+delete multiple bookmarks at once
+
+  $ hg bookmark -d @ a@
 
 test clone with a bookmark named "default" (issue3677)