diff 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
line wrap: on
line diff
--- a/mercurial/revset.py	Tue Mar 29 00:05:14 2016 +0900
+++ b/mercurial/revset.py	Tue Mar 29 00:08:25 2016 +0900
@@ -2253,8 +2253,7 @@
 class _aliasrules(parser.basealiasrules):
     """Parsing and expansion rule set of revset aliases"""
     _section = _('revset alias')
-    _parsedecl = staticmethod(_parsealias)
-    _parsedefn = staticmethod(_parsealias)
+    _parse = staticmethod(_parsealias)
     _getlist = staticmethod(getlist)
 
 class revsetalias(object):