Mercurial > public > mercurial-scm > hg-stable
diff mercurial/patch.py @ 37764:5e67c20915a7
diff: invoke the file prefetch hook
By invoking it this deep within the command, we pick up both subrepo and hgweb
support, as well as --patch support for commands that implement logopts.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Sat, 14 Apr 2018 20:11:27 -0400 |
parents | 35632d392279 |
children | 72f6498c040b |
line wrap: on
line diff
--- a/mercurial/patch.py Sat Apr 14 19:43:45 2018 -0400 +++ b/mercurial/patch.py Sat Apr 14 20:11:27 2018 -0400 @@ -2466,6 +2466,10 @@ # reported as copies. We want to show them in the diff as additions. del copy[dst] + prefetchmatch = scmutil.matchfiles( + repo, list(modifiedset | addedset | removedset)) + scmutil.prefetchfiles(repo, [ctx1.rev(), ctx2.rev()], prefetchmatch) + def difffn(opts, losedata): return trydiff(repo, revs, ctx1, ctx2, modified, added, removed, copy, getfilectx, opts, losedata, prefix, relroot)