# HG changeset patch # User Martin von Zweigbergk # Date 1522086102 25200 # Node ID 52d4cb162902b8546235e057d50edcf7a84b831e # Parent 1312afae2d5134477d7968821dbd09c803c7156e templatekw: migrate to new method for getting copy info Differential Revision: https://phab.mercurial-scm.org/D6012 diff -r 1312afae2d51 -r 52d4cb162902 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