diff hgext/fix.py @ 41994:550a172a603b

memctx: rename constructor argument "copied" to "copysource" (API) It's just the path, not the nodeid, so "copysource" seems more appropriate. Differential Revision: https://phab.mercurial-scm.org/D6158
author Martin von Zweigbergk <martinvonz@google.com>
date Tue, 19 Mar 2019 22:58:39 -0700
parents c3a249c2b6b3
children 7f6b375a8903
line wrap: on
line diff
--- a/hgext/fix.py	Wed Mar 13 20:09:56 2019 -0700
+++ b/hgext/fix.py	Tue Mar 19 22:58:39 2019 -0700
@@ -601,7 +601,7 @@
         if path not in ctx:
             return None
         fctx = ctx[path]
-        copied = fctx.copysource()
+        copysource = fctx.copysource()
         return context.memfilectx(
             repo,
             memctx,
@@ -609,7 +609,7 @@
             data=filedata.get(path, fctx.data()),
             islink=fctx.islink(),
             isexec=fctx.isexec(),
-            copied=copied)
+            copysource=copysource)
 
     extra = ctx.extra().copy()
     extra['fix_source'] = ctx.hex()