revset: allow extended characters in symbols
authorMatt Mackall <mpm@selenic.com>
Sat, 19 Jun 2010 12:22:35 -0500
changeset 11404 37cbedbeae96
parent 11403 f7d7de6eccc8
child 11405 bf5d88c466e0
revset: allow extended characters in symbols
mercurial/revset.py
--- 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