Mercurial > hg
diff mercurial/revset.py @ 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 | 2def3d55b1b9 |
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): '''