tests/test-topic.t
changeset 4061 ad4194399b47
parent 4060 54eade86ac31
child 4062 6774820c8a2e
--- a/tests/test-topic.t	Thu Aug 30 20:21:17 2018 +0800
+++ b/tests/test-topic.t	Thu Aug 30 21:05:17 2018 +0800
@@ -741,6 +741,9 @@
   >   hg log -T '{rev}: {topic}\n' -r "$1"
   > }
 
+  $ tlog 'topic(9)'
+  9: fran
+  $ tlog 'topic(8)'
   $ tlog 'topic(head())'
   9: fran
   $ tlog 'topic(:)'
@@ -751,6 +754,15 @@
   9: fran
   $ tlog 'topic(wdir())'
   9: fran
+  $ tlog 'topic(nonsense)'
+  abort: unknown revision 'nonsense'!
+  [255]
+
+Pattern matching in topic() revset
+  $ tlog 'topic("re:nonsense")'
+  $ tlog 'topic("literal:nonsense")'
+  abort: topic 'nonsense' does not exist!
+  [255]
 
 Deactivate the topic.
   $ hg topics