# HG changeset patch # User Martin von Zweigbergk # Date 2018-08-28 20:29:47 # Node ID b902b177901d433682c7b88f4b0e8a817b089933 # Parent c11e8894b9cafe9370179604ad95505fb4aa9221 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 diff --git a/mercurial/revsetlang.py b/mercurial/revsetlang.py --- a/mercurial/revsetlang.py +++ b/mercurial/revsetlang.py @@ -177,7 +177,7 @@ def tokenize(program, lookup=None, symin 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)