Patchwork [3,of,4,v2] revset: define _aliassyminitletters in terms of _syminitletters

login
register
mail settings
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

Augie Fackler - Oct. 7, 2016, 3:21 p.m.
# HG changeset patch
# User Augie Fackler <augie@google.com>
# Date 1475843560 14400
#      Fri Oct 07 08:32:40 2016 -0400
# Node ID 1eeb40b50d3129e5ef6b05709c5a41932a4371fb
# Parent  204fdb0fc946f0955a5269c23efa8c90bca05acf
revset: define _aliassyminitletters in terms of _syminitletters

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