author | Martin von Zweigbergk <martinvonz@google.com> |
Mon, 26 Mar 2018 10:41:42 -0700 | |
changeset 41781 | 52d4cb162902 |
parent 41780 | 1312afae2d51 |
child 41782 | 151cc149b17f |
--- 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