Mercurial > public > mercurial-scm > hg
diff mercurial/templatekw.py @ 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 | 36b62a522814 |
children | e9b9ee9af4a9 |
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