diff --git a/mercurial/context.py b/mercurial/context.py --- a/mercurial/context.py +++ b/mercurial/context.py @@ -2234,9 +2234,7 @@ """ 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)