Patchwork D6012: templatekw: migrate to new method for getting copy info

login
register
mail settings
Submitter phabricator
Date Feb. 24, 2019, 8:24 a.m.
Message ID <fb0dd9f857755e903c80ec64876fde34@localhost.localdomain>
Download mbox | patch
Permalink /patch/38898/
State Not Applicable
Headers show

Comments

phabricator - Feb. 24, 2019, 8:24 a.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG52d4cb162902: templatekw: 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/D6012?vs=14200&id=14215

REVISION DETAIL
  https://phab.mercurial-scm.org/D6012

AFFECTED FILES
  mercurial/templatekw.py

CHANGE DETAILS




To: martinvonz, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/mercurial/templatekw.py b/mercurial/templatekw.py
--- a/mercurial/templatekw.py
+++ b/mercurial/templatekw.py
@@ -129,8 +129,7 @@ 
         # If linkrev != rev (i.e. rev not found in rcache) fallback to
         # filectx logic.
         try:
-            renamed = repo[rev][fn].renamed()
-            return renamed and renamed[0]
+            return repo[rev][fn].copysource()
         except error.LookupError:
             return None