tests/test-bookmarks-pushpull.t
changeset 29354 af849596752c
parent 29229 89bba2beb03e
child 29376 113d0b23321a
--- a/tests/test-bookmarks-pushpull.t	Mon Jun 13 05:11:56 2016 +0900
+++ b/tests/test-bookmarks-pushpull.t	Mon Jun 13 23:50:26 2016 +0200
@@ -113,6 +113,19 @@
   exporting bookmark V
   [1]
 
+exporting the active bookmark with 'push -B .'
+demand that one of the bookmarks is activated
+
+  $ hg update -r default
+  1 files updated, 0 files merged, 0 files removed, 0 files unresolved
+  (leaving bookmark V)
+  $ hg push -B . ../a
+  abort: no active bookmark
+  [255]
+  $ hg update -r V
+  0 files updated, 0 files merged, 1 files removed, 0 files unresolved
+  (activating bookmark V)
+
 delete the bookmark
 
   $ hg book -d V