Mercurial > hg-stable
changeset 45577:4e2238ba51a4
sidedata: simply read p1copies files from the `ChangingFiles` object
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Wed, 23 Sep 2020 15:16:16 +0200 |
parents | f9a67afcc33b |
children | 147fb889278b |
files | mercurial/changelog.py |
diffstat | 1 files changed, 1 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/changelog.py Wed Sep 23 15:16:01 2020 +0200 +++ b/mercurial/changelog.py Wed Sep 23 15:16:16 2020 +0200 @@ -350,9 +350,7 @@ @property def p1copies(self): if self._cpsd: - rawcopies = self._sidedata.get(sidedatamod.SD_P1COPIES) - if not rawcopies: - return {} + return self.changes.copied_from_p1 else: rawcopies = self.extra.get(b'p1copies') if rawcopies is None: