Mercurial > hg
changeset 39324:b902b177901d
revsetlang: fix position of '-' in spaceless 'a-b' expressions
I don't know if there is an observable difference, but it seems like
an obvious fix.
Differential Revision: https://phab.mercurial-scm.org/D4410
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Tue, 28 Aug 2018 13:29:47 -0700 |
parents | c11e8894b9ca |
children | 93175cba7edd |
files | mercurial/revsetlang.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/revsetlang.py Wed Aug 15 23:05:23 2018 +0000 +++ b/mercurial/revsetlang.py Tue Aug 28 13:29:47 2018 -0700 @@ -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)