changeset 21878:e2530d4a47c1

log: use an exact matcher for --patch --follow The arguments to log --patch --follow are expected to be exact paths. This will be used to make manifest filtering for these cases more efficient in upcoming patches.
author Siddharth Agarwal <sid0@fb.com>
date Sat, 12 Jul 2014 18:31:18 -0700
parents dbbae63865a6
children 090dcaaf3fff
files mercurial/cmdutil.py
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/cmdutil.py	Wed Jul 16 17:35:04 2014 -0500
+++ b/mercurial/cmdutil.py	Sat Jul 12 18:31:18 2014 -0700
@@ -1499,7 +1499,6 @@
     fcache = {}
     fcacheready = [False]
     pctx = repo['.']
-    wctx = repo[None]
 
     def populate():
         for fn in files:
@@ -1512,7 +1511,7 @@
             # Lazy initialization
             fcacheready[0] = True
             populate()
-        return scmutil.match(wctx, fcache.get(rev, []), default='path')
+        return scmutil.matchfiles(repo, fcache.get(rev, []))
 
     return filematcher