# HG changeset patch # User Martin von Zweigbergk # Date 2018-03-26 05:07:35 # Node ID 322ce0bca19dd7e277a7042a9be0fa55dcca946d # Parent a86e22007b5442f3ce3f0826f352af556add5ae3 memfilefromctx: migrate to new method for getting copy info Differential Revision: https://phab.mercurial-scm.org/D6016 diff --git a/mercurial/context.py b/mercurial/context.py --- a/mercurial/context.py +++ b/mercurial/context.py @@ -2234,9 +2234,7 @@ def memfilefromctx(ctx): """ def getfilectx(repo, memctx, path): fctx = ctx[path] - copied = fctx.renamed() - if copied: - copied = copied[0] + copied = fctx.copysource() return memfilectx(repo, memctx, path, fctx.data(), islink=fctx.islink(), isexec=fctx.isexec(), copied=copied)