--- 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)