# HG changeset patch # User Siddharth Agarwal # Date 2014-07-13 01:31:18 # Node ID e2530d4a47c10670409c4166b1b567f20af11089 # Parent dbbae63865a657280813685b58e5261147fa83f0 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. diff --git a/mercurial/cmdutil.py b/mercurial/cmdutil.py --- a/mercurial/cmdutil.py +++ b/mercurial/cmdutil.py @@ -1499,7 +1499,6 @@ def _makelogfilematcher(repo, files, fol fcache = {} fcacheready = [False] pctx = repo['.'] - wctx = repo[None] def populate(): for fn in files: @@ -1512,7 +1511,7 @@ def _makelogfilematcher(repo, files, fol # Lazy initialization fcacheready[0] = True populate() - return scmutil.match(wctx, fcache.get(rev, []), default='path') + return scmutil.matchfiles(repo, fcache.get(rev, [])) return filematcher