diff hgext/fix.py @ 41777:c3a249c2b6b3

fix: migrate to new method for getting copy info Differential Revision: https://phab.mercurial-scm.org/D6017
author Martin von Zweigbergk <martinvonz@google.com>
date Mon, 11 Feb 2019 15:28:04 -0800
parents d8f5c615e811
children 550a172a603b
line wrap: on
line diff
--- 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,