changeset 30056:3eb4df6d15f8

revset: define _symletters in terms of _syminitletters
author Augie Fackler <augie@google.com>
date Fri, 07 Oct 2016 08:09:23 -0400
parents 7bf15e7eab77
children a8ba9a23c893
files mercurial/revset.py
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/revset.py	Fri Oct 07 08:03:30 2016 -0400
+++ b/mercurial/revset.py	Fri Oct 07 08:09:23 2016 -0400
@@ -177,8 +177,7 @@
                       if c.isalnum() or c in '._@' or ord(c) > 127)
 
 # default set of valid characters for non-initial letters of symbols
-_symletters = set(c for c in [chr(i) for i in xrange(256)]
-                  if c.isalnum() or c in '-._/@' or ord(c) > 127)
+_symletters = _syminitletters | set('-/')
 
 def tokenize(program, lookup=None, syminitletters=None, symletters=None):
     '''