merge with i18n stable 2.8.2
authorMatt Mackall <mpm@selenic.com>
Wed, 01 Jan 2014 21:46:03 -0600
branchstable
changeset 20211 ca387377df7a
parent 20210 c3623586378d (current diff)
parent 20208 61a47fd64f30 (diff)
child 20212 8cec4cf95dc4
child 20214 bdd340d8a595
merge with i18n
--- a/mercurial/fileset.py	Mon Dec 30 21:30:34 2013 +0900
+++ b/mercurial/fileset.py	Wed Jan 01 21:46:03 2014 -0600
@@ -78,7 +78,9 @@
         pos += 1
     yield ('end', None, pos)
 
-parse = parser.parser(tokenize, elements).parse
+def parse(expr):
+    p = parser.parser(tokenize, elements)
+    return p.parse(expr)
 
 def getstring(x, err):
     if x and (x[0] == 'string' or x[0] == 'symbol'):
--- a/mercurial/revset.py	Mon Dec 30 21:30:34 2013 +0900
+++ b/mercurial/revset.py	Wed Jan 01 21:46:03 2014 -0600
@@ -1880,7 +1880,9 @@
         aliases[alias.name] = alias
     return _expandaliases(aliases, tree, [], {})
 
-parse = parser.parser(tokenize, elements).parse
+def parse(spec):
+    p = parser.parser(tokenize, elements)
+    return p.parse(spec)
 
 def match(ui, spec):
     if not spec: