fix: migrate to new method for getting copy info
authorMartin von Zweigbergk <martinvonz@google.com>
Mon, 11 Feb 2019 15:28:04 -0800
changeset 41777 c3a249c2b6b3
parent 41776 322ce0bca19d
child 41778 8843bc1fc14d
fix: migrate to new method for getting copy info Differential Revision: https://phab.mercurial-scm.org/D6017
hgext/fix.py
--- a/hgext/fix.py	Sun Mar 25 22:07:35 2018 -0700
+++ b/hgext/fix.py	Mon Feb 11 15:28:04 2019 -0800
@@ -601,9 +601,7 @@
         if path not in ctx:
             return None
         fctx = ctx[path]
-        copied = fctx.renamed()
-        if copied:
-            copied = copied[0]
+        copied = fctx.copysource()
         return context.memfilectx(
             repo,
             memctx,