changeset 22166:ac7a3b2a85e3 stable

cmdutil: rename _makelogfilematcher to _makefollowlogfilematcher We're going to add a _makenofollowlogfilematcher in an upcoming patch.
author Siddharth Agarwal <sid0@fb.com>
date Wed, 13 Aug 2014 15:15:13 -0700
parents 9ac98c2aa95c
children d4bc38f6eab7
files mercurial/cmdutil.py
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/cmdutil.py	Wed Aug 13 11:50:13 2014 -0700
+++ b/mercurial/cmdutil.py	Wed Aug 13 15:15:13 2014 -0700
@@ -1492,7 +1492,7 @@
 
     return iterate()
 
-def _makelogfilematcher(repo, files, followfirst):
+def _makefollowlogfilematcher(repo, files, followfirst):
     # When displaying a revision with --patch --follow FILE, we have
     # to know which file of the revision must be diffed. With
     # --follow, we want the names of the ancestors of FILE in the
@@ -1632,7 +1632,8 @@
         if follow and not match.always():
             # _makelogfilematcher expects its files argument to be relative to
             # the repo root, so use match.files(), not pats.
-            filematcher = _makelogfilematcher(repo, match.files(), followfirst)
+            filematcher = _makefollowlogfilematcher(repo, match.files(),
+                                                    followfirst)
         else:
             filematcher = lambda rev: match