D6016: memfilefromctx: migrate to new method for getting copy info

martinvonz (Martin von Zweigbergk) phabricator at mercurial-scm.org
Sun Feb 24 03:24:58 EST 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rHG322ce0bca19d: memfilefromctx: migrate to new method for getting copy info (authored by martinvonz, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D6016?vs=14204&id=14219

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