equal
deleted
inserted
replaced
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 _parse = staticmethod(_parsealias) |
2256 _parse = staticmethod(_parsealias) |
2257 _getlist = staticmethod(getlist) |
2257 |
|
2258 @staticmethod |
|
2259 def _trygetfunc(tree): |
|
2260 if tree[0] == 'func' and tree[1][0] == 'symbol': |
|
2261 return tree[1][1], getlist(tree[2]) |
2258 |
2262 |
2259 def expandaliases(ui, tree, showwarning=None): |
2263 def expandaliases(ui, tree, showwarning=None): |
2260 aliases = _aliasrules.buildmap(ui.configitems('revsetalias')) |
2264 aliases = _aliasrules.buildmap(ui.configitems('revsetalias')) |
2261 tree = _aliasrules.expand(aliases, tree) |
2265 tree = _aliasrules.expand(aliases, tree) |
2262 if showwarning: |
2266 if showwarning: |