tests: add test showing current parse of empty string symbol in revset
authorMartin von Zweigbergk <martinvonz@google.com>
Mon, 02 Apr 2018 09:06:24 -0700
changeset 37263 f74fdab86f16
parent 37262 54435fd09f1d
child 37264 d2c912836465
tests: add test showing current parse of empty string symbol in revset We support e.g. parents(""), but I think that's by accident and I'll change it soon. Differential Revision: https://phab.mercurial-scm.org/D3017
tests/test-revset2.t
--- a/tests/test-revset2.t	Mon Apr 02 08:46:07 2018 -0700
+++ b/tests/test-revset2.t	Mon Apr 02 09:06:24 2018 -0700
@@ -575,6 +575,14 @@
   hg: parse error: not a symbol
   [255]
 
+test empty string
+
+  $ log ''
+  hg: parse error: empty query
+  [255]
+  $ log 'parents("")'
+  8
+
 we can use patterns when searching for tags
 
   $ log 'tag("1..*")'