changeset 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 322ce0bca19d
children 8843bc1fc14d
files hgext/fix.py
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
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,