D6016: memfilefromctx: migrate to new method for getting copy info
martinvonz (Martin von Zweigbergk)
phabricator at mercurial-scm.org
Sat Feb 23 17:09:24 UTC 2019
martinvonz created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D6016
AFFECTED FILES
mercurial/context.py
CHANGE DETAILS
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)
To: martinvonz, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list