changeset 37263:f74fdab86f16

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
author Martin von Zweigbergk <martinvonz@google.com>
date Mon, 02 Apr 2018 09:06:24 -0700
parents 54435fd09f1d
children d2c912836465
files tests/test-revset2.t
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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..*")'