##// END OF EJS Templates
revset: define _parsealias() in _aliasrules class...
Yuya Nishihara -
r29074:e7c67973 default
parent child Browse files
Show More
@@ -2238,19 +2238,19 def _parsewith(spec, lookup=None, symini
2238 raise error.ParseError(_('invalid token'), pos)
2238 raise error.ParseError(_('invalid token'), pos)
2239 return parser.simplifyinfixops(tree, ('list', 'or'))
2239 return parser.simplifyinfixops(tree, ('list', 'or'))
2240
2240
2241 def _parsealias(spec):
2242 """Parse alias declaration/definition ``spec``
2243
2244 This allows symbol names to use also ``$`` as an initial letter
2245 (for backward compatibility), and callers of this function should
2246 examine whether ``$`` is used also for unexpected symbols or not.
2247 """
2248 return _parsewith(spec, syminitletters=_aliassyminitletters)
2249
2250 class _aliasrules(parser.basealiasrules):
2241 class _aliasrules(parser.basealiasrules):
2251 """Parsing and expansion rule set of revset aliases"""
2242 """Parsing and expansion rule set of revset aliases"""
2252 _section = _('revset alias')
2243 _section = _('revset alias')
2253 _parse = staticmethod(_parsealias)
2244
2245 @staticmethod
2246 def _parse(spec):
2247 """Parse alias declaration/definition ``spec``
2248
2249 This allows symbol names to use also ``$`` as an initial letter
2250 (for backward compatibility), and callers of this function should
2251 examine whether ``$`` is used also for unexpected symbols or not.
2252 """
2253 return _parsewith(spec, syminitletters=_aliassyminitletters)
2254
2254
2255 @staticmethod
2255 @staticmethod
2256 def _trygetfunc(tree):
2256 def _trygetfunc(tree):
General Comments 0
You need to be logged in to leave comments. Login now