D4410: revsetlang: fix position of '-' in spaceless 'a-b' expressions

martinvonz (Martin von Zweigbergk) phabricator at mercurial-scm.org
Wed Aug 29 09:04:25 EDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rHGb902b177901d: revsetlang: fix position of '-' in spaceless 'a-b' expressions (authored by martinvonz, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D4410?vs=10622&id=10638

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