Mercurial > hg
diff mercurial/context.py @ 41776:322ce0bca19d
memfilefromctx: migrate to new method for getting copy info
Differential Revision: https://phab.mercurial-scm.org/D6016
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Sun, 25 Mar 2018 22:07:35 -0700 |
parents | c7a843aa4b42 |
children | 2ba96fca8528 |
line wrap: on
line diff
--- a/mercurial/context.py Wed Dec 27 22:32:27 2017 -0800 +++ b/mercurial/context.py Sun Mar 25 22:07:35 2018 -0700 @@ -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)