From patchwork Sun Feb 24 08:24:34 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: D6012: templatekw: migrate to new method for getting copy info From: phabricator X-Patchwork-Id: 38898 Message-Id: To: mercurial-devel@mercurial-scm.org Date: Sun, 24 Feb 2019 08:24:34 +0000 This revision was automatically updated to reflect the committed changes. Closed by commit rHG52d4cb162902: templatekw: migrate to new method for getting copy info (authored by martinvonz, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D6012?vs=14200&id=14215 REVISION DETAIL https://phab.mercurial-scm.org/D6012 AFFECTED FILES mercurial/templatekw.py CHANGE DETAILS To: martinvonz, #hg-reviewers Cc: mercurial-devel diff --git a/mercurial/templatekw.py b/mercurial/templatekw.py --- a/mercurial/templatekw.py +++ b/mercurial/templatekw.py @@ -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