changeset 41772:52d4cb162902

templatekw: migrate to new method for getting copy info Differential Revision: https://phab.mercurial-scm.org/D6012
author Martin von Zweigbergk <martinvonz@google.com>
date Mon, 26 Mar 2018 10:41:42 -0700
parents 1312afae2d51
children 151cc149b17f
files mercurial/templatekw.py
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/templatekw.py	Wed Dec 27 22:27:05 2017 -0800
+++ b/mercurial/templatekw.py	Mon Mar 26 10:41:42 2018 -0700
@@ -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