comparison mercurial/revset.py @ 28875:2e9f5453ab5a

parser: unify parser function of alias declaration and definition We no longer have to keep them separately.
author Yuya Nishihara <yuya@tcha.org>
date Tue, 29 Mar 2016 00:08:25 +0900
parents 552eabef663b
children 0c135f37c6f8
comparison
equal deleted inserted replaced
28874:552eabef663b 28875:2e9f5453ab5a
2251 return parser.simplifyinfixops(tree, ('list', 'or')) 2251 return parser.simplifyinfixops(tree, ('list', 'or'))
2252 2252
2253 class _aliasrules(parser.basealiasrules): 2253 class _aliasrules(parser.basealiasrules):
2254 """Parsing and expansion rule set of revset aliases""" 2254 """Parsing and expansion rule set of revset aliases"""
2255 _section = _('revset alias') 2255 _section = _('revset alias')
2256 _parsedecl = staticmethod(_parsealias) 2256 _parse = staticmethod(_parsealias)
2257 _parsedefn = staticmethod(_parsealias)
2258 _getlist = staticmethod(getlist) 2257 _getlist = staticmethod(getlist)
2259 2258
2260 class revsetalias(object): 2259 class revsetalias(object):
2261 # whether own `error` information is already shown or not. 2260 # whether own `error` information is already shown or not.
2262 # this avoids showing same warning multiple times at each `findaliases`. 2261 # this avoids showing same warning multiple times at each `findaliases`.