diff mercurial/revset.py @ 28898:8d398155bfda

revset: rename findaliases() to expandaliases() This function returns a full tree of alias expansion applied, which sounds different from what "findaliases" would do.
author Yuya Nishihara <yuya@tcha.org>
date Mon, 29 Feb 2016 22:58:15 +0900
parents 4bf9ed7a260e
children 1203159c8928
line wrap: on
line diff
--- a/mercurial/revset.py	Tue Mar 29 16:30:59 2016 +0900
+++ b/mercurial/revset.py	Mon Feb 29 22:58:15 2016 +0900
@@ -2256,7 +2256,7 @@
     _parse = staticmethod(_parsealias)
     _getlist = staticmethod(getlist)
 
-def findaliases(ui, tree, showwarning=None):
+def expandaliases(ui, tree, showwarning=None):
     aliases = _aliasrules.buildmap(ui.configitems('revsetalias'))
     tree = _aliasrules.expand(aliases, tree)
     if showwarning:
@@ -2328,7 +2328,7 @@
 
 def _makematcher(ui, tree, repo):
     if ui:
-        tree = findaliases(ui, tree, showwarning=ui.warn)
+        tree = expandaliases(ui, tree, showwarning=ui.warn)
     tree = foldconcat(tree)
     weight, tree = optimize(tree, True)
     posttreebuilthook(tree, repo)