Mercurial > hg
changeset 11404:37cbedbeae96
revset: allow extended characters in symbols
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Sat, 19 Jun 2010 12:22:35 -0500 |
parents | f7d7de6eccc8 |
children | bf5d88c466e0 |
files | mercurial/revset.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/revset.py Sat Jun 19 19:16:11 2010 +0200 +++ b/mercurial/revset.py Sat Jun 19 12:22:35 2010 -0500 @@ -62,12 +62,12 @@ pos += 1 else: raise error.ParseError(_("unterminated string"), s) - elif c.isalnum() or c in '.': # gather up a symbol/keyword + elif c.isalnum() or c in '._' or ord(c) > 127: # gather up a symbol/keyword s = pos pos += 1 while pos < l: # find end of symbol d = program[pos] - if not (d.isalnum() or d in "._"): + if not (d.isalnum() or d in "._" or ord(d) > 127): break if d == '.' and program[pos - 1] == '.': # special case for .. pos -= 1