templatekw: migrate to new method for getting copy info
authorMartin von Zweigbergk <martinvonz@google.com>
Mon, 26 Mar 2018 10:41:42 -0700
changeset 41772 52d4cb162902
parent 41771 1312afae2d51
child 41773 151cc149b17f
templatekw: migrate to new method for getting copy info Differential Revision: https://phab.mercurial-scm.org/D6012
mercurial/templatekw.py
--- 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