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

login
register
mail settings
Submitter phabricator
Date April 2, 2018, 6:48 p.m.
Message ID <bf1c5af2dbeaf784ad9d91366b966c68@localhost.localdomain>
Download mbox | patch
Permalink /patch/30136/
State Not Applicable
Headers show

Comments

phabricator - April 2, 2018, 6:48 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG0dbc6f37c8fc: tests: add test showing current parse of empty string symbol in revset (authored by martinvonz, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D3017?vs=7508&id=7515

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

AFFECTED FILES
  tests/test-revset2.t

CHANGE DETAILS




To: martinvonz, #hg-reviewers, pulkit
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..*")'