tests/test-bookmarks-current.t
changeset 39276 337443f09fc8
parent 28500 2e1bceeea520
child 39754 c48738923dba
--- a/tests/test-bookmarks-current.t	Thu Aug 23 01:48:39 2018 +0200
+++ b/tests/test-bookmarks-current.t	Thu Aug 16 17:19:27 2018 +0200
@@ -222,3 +222,26 @@
      Z                         0:719295282060
   $ hg parents -q
   4:8fa964221e8e
+
+Checks command to retrieve active bookmark
+------------------------------------------
+
+display how "{activebookmark}" template is unsuitable for the task
+
+  $ hg book -T '- {activebookmark}\n'
+  - 
+  - Y
+  - 
+
+  $ hg book -r . W
+  $ hg book -T '- {activebookmark}\n'
+  - Y
+  - 
+  - Y
+  - 
+
+  $ hg bookmarks --active
+  Y
+  $ hg bookmarks --inactive
+  $ hg bookmarks --active
+  [1]