Submitter | Augie Fackler |
---|---|
Date | Oct. 7, 2016, 3:21 p.m. |
Message ID | <1eeb40b50d3129e5ef6b.1475853701@augie-macbookair2.roam.corp.google.com> |
Download | mbox | patch |
Permalink | /patch/16898/ |
State | Changes Requested |
Headers | show |
Comments
Patch
diff --git a/mercurial/revset.py b/mercurial/revset.py --- a/mercurial/revset.py +++ b/mercurial/revset.py @@ -2619,8 +2619,7 @@ def optimize(tree): # the set of valid characters for the initial letter of symbols in # alias declarations and definitions -_aliassyminitletters = set(c for c in [chr(i) for i in xrange(256)] - if c.isalnum() or c in '._@$' or ord(c) > 127) +_aliassyminitletters = _syminitletters | set(u'$') def _parsewith(spec, lookup=None, syminitletters=None): """Generate a parse tree of given spec with given tokenizing options