diff hgext/largefiles/overrides.py @ 24230:23438bceba04

largefiles: report the source of copied/moved largefiles in status -C Previously, the source was silently skipped because the largefile was in the list of changed files, but the standin was in the copies dictionary. The source is only displayed if the changed file is a key in the copies dictionary.
author Matt Harbison <matt_harbison@yahoo.com>
date Sun, 25 Jan 2015 02:45:49 -0500
parents e6b0de02a02e
children c9f4ef967a1d
line wrap: on
line diff
--- a/hgext/largefiles/overrides.py	Sun Mar 08 00:04:03 2015 -0500
+++ b/hgext/largefiles/overrides.py	Sun Jan 25 02:45:49 2015 -0500
@@ -578,6 +578,15 @@
         repo.wwrite(fcd.path(), fco.data(), fco.flags())
     return 0
 
+def copiespathcopies(orig, ctx1, ctx2):
+    copies = orig(ctx1, ctx2)
+    updated = {}
+
+    for k, v in copies.iteritems():
+        updated[lfutil.splitstandin(k) or k] = lfutil.splitstandin(v) or v
+
+    return updated
+
 # Copy first changes the matchers to match standins instead of
 # largefiles.  Then it overrides util.copyfile in that function it
 # checks if the destination largefile already exists. It also keeps a