Patchwork D3017: tests: add test showing current parse of empty string symbol in revset

login
register
mail settings
Submitter phabricator
Date April 2, 2018, 5:15 p.m.
Message ID <differential-rev-PHID-DREV-ebvadu6omblr3wewnryf-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/30131/
State Superseded
Headers show

Comments

phabricator - April 2, 2018, 5:15 p.m.
martinvonz created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  We support e.g. parents(""), but I think that's by accident and I'll
  change it soon.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D3017

AFFECTED FILES
  tests/test-revset2.t

CHANGE DETAILS




To: martinvonz, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/tests/test-revset2.t b/tests/test-revset2.t
--- a/tests/test-revset2.t
+++ b/tests/test-revset2.t
@@ -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..*")'