diff mercurial/changelog.py @ 47385:9d9eb22b9b69

revlog: no longer return sidedata from `_revisiondata` All users have been migrated. When they was introduced sidedata where grouped with the actual revision data and unpacking one came with the other. Sidedata moved be stored "independently" and it no longer make sense to retrieve both at the same time unconditionnaly. Differential Revision: https://phab.mercurial-scm.org/D10783
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Thu, 27 May 2021 03:41:02 +0200
parents 659a452ee263
children e0a314bcbc9d
line wrap: on
line diff
--- a/mercurial/changelog.py	Thu May 27 03:28:15 2021 +0200
+++ b/mercurial/changelog.py	Thu May 27 03:41:02 2021 +0200
@@ -527,7 +527,7 @@
         ``changelogrevision`` instead, as it is faster for partial object
         access.
         """
-        d = self._revisiondata(nodeorrev)[0]
+        d = self._revisiondata(nodeorrev)
         sidedata = self.sidedata(nodeorrev)
         copy_sd = self._copiesstorage == b'changeset-sidedata'
         c = changelogrevision(self, d, sidedata, copy_sd)
@@ -535,7 +535,7 @@
 
     def changelogrevision(self, nodeorrev):
         """Obtain a ``changelogrevision`` for a node or revision."""
-        text = self._revisiondata(nodeorrev)[0]
+        text = self._revisiondata(nodeorrev)
         sidedata = self.sidedata(nodeorrev)
         return changelogrevision(
             self, text, sidedata, self._copiesstorage == b'changeset-sidedata'