D3017: tests: add test showing current parse of empty string symbol in revset
martinvonz (Martin von Zweigbergk)
phabricator at mercurial-scm.org
Mon Apr 2 17:15:37 UTC 2018
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
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..*")'
To: martinvonz, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list