mercurial/revset.py
changeset 28870 475dad3432fd
parent 28869 f8182ab688a5
child 28871 6d6201fc5aae
equal deleted inserted replaced
28869:f8182ab688a5 28870:475dad3432fd
  2364     if pos != len(defn):
  2364     if pos != len(defn):
  2365         raise error.ParseError(_('invalid token'), pos)
  2365         raise error.ParseError(_('invalid token'), pos)
  2366     tree = parser.simplifyinfixops(tree, ('list', 'or'))
  2366     tree = parser.simplifyinfixops(tree, ('list', 'or'))
  2367     return _relabelaliasargs(tree, args)
  2367     return _relabelaliasargs(tree, args)
  2368 
  2368 
       
  2369 class _aliasrules(parser.basealiasrules):
       
  2370     """Parsing and expansion rule set of revset aliases"""
       
  2371     _section = _('revset alias')
       
  2372     _getlist = staticmethod(getlist)
       
  2373 
  2369 class revsetalias(object):
  2374 class revsetalias(object):
  2370     # whether own `error` information is already shown or not.
  2375     # whether own `error` information is already shown or not.
  2371     # this avoids showing same warning multiple times at each `findaliases`.
  2376     # this avoids showing same warning multiple times at each `findaliases`.
  2372     warned = False
  2377     warned = False
  2373 
  2378