D4410: revsetlang: fix position of '-' in spaceless 'a-b' expressions
martinvonz (Martin von Zweigbergk)
phabricator at mercurial-scm.org
Tue Aug 28 20:30:19 UTC 2018
martinvonz created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
I don't know if there is an observable difference, but it seems like
an obvious fix.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D4410
AFFECTED FILES
mercurial/revsetlang.py
CHANGE DETAILS
diff --git a/mercurial/revsetlang.py b/mercurial/revsetlang.py
--- a/mercurial/revsetlang.py
+++ b/mercurial/revsetlang.py
@@ -177,7 +177,7 @@
if p: # possible consecutive -
yield ('symbol', p, s)
s += len(p)
- yield ('-', None, pos)
+ yield ('-', None, s)
s += 1
if parts[-1]: # possible trailing -
yield ('symbol', parts[-1], s)
To: martinvonz, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list