diff hgext/largefiles/overrides.py @ 24782:4906dc0e038c

copies: add matcher parameter to copy logic This allows passing a matcher down the pathcopies() stack to _forwardcopies(). This will let us add logic in a later patch to avoid tracing copies when not necessary (like when doing hg diff -r 1 -r 2 foo.txt).
author Durham Goode <durham@fb.com>
date Thu, 16 Apr 2015 11:29:30 -0700
parents 0974d3a0be29
children 9d5c27890790
line wrap: on
line diff
--- a/hgext/largefiles/overrides.py	Sun Apr 12 23:01:18 2015 -0700
+++ b/hgext/largefiles/overrides.py	Thu Apr 16 11:29:30 2015 -0700
@@ -547,8 +547,8 @@
         repo.wwrite(fcd.path(), fco.data(), fco.flags())
     return 0
 
-def copiespathcopies(orig, ctx1, ctx2):
-    copies = orig(ctx1, ctx2)
+def copiespathcopies(orig, ctx1, ctx2, match=None):
+    copies = orig(ctx1, ctx2, match=match)
     updated = {}
 
     for k, v in copies.iteritems():