author | Yuya Nishihara <yuya@tcha.org> |
Sun, 12 Mar 2017 17:16:43 -0700 | |
changeset 31385 | 1c48a8278b2f |
parent 31384 | fac5cd3b8673 |
child 31386 | f1f57e4e55e0 |
--- a/mercurial/revsetlang.py Sun Mar 12 17:13:54 2017 -0700 +++ b/mercurial/revsetlang.py Sun Mar 12 17:16:43 2017 -0700 @@ -644,10 +644,10 @@ pos = 0 arg = 0 while pos < len(expr): - c = expr[pos] + c = expr[pos:pos + 1] if c == '%': pos += 1 - d = expr[pos] + d = expr[pos:pos + 1] if d == '%': ret += d elif d in 'dsnbr': @@ -656,7 +656,7 @@ elif d == 'l': # a list of some type pos += 1 - d = expr[pos] + d = expr[pos:pos + 1] ret += listexp(list(args[arg]), d) arg += 1 else: