[Updated] D10781: revlog: use `self.sidedata` directly to construct changelogrevision
marmoute (Pierre-Yves David)
phabricator at mercurial-scm.org
Mon Jun 7 09:21:55 UTC 2021
Closed by commit rHG659a452ee263: revlog: use `self.sidedata` directly to construct changelogrevision (authored by marmoute).
This revision was automatically updated to reflect the committed changes.
This revision was not accepted when it landed; it landed in state "Needs Review".
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D10781?vs=28440&id=28483
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D10781/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D10781
AFFECTED FILES
mercurial/changelog.py
CHANGE DETAILS
diff --git a/mercurial/changelog.py b/mercurial/changelog.py
--- a/mercurial/changelog.py
+++ b/mercurial/changelog.py
@@ -527,15 +527,16 @@
``changelogrevision`` instead, as it is faster for partial object
access.
"""
- d, s = self._revisiondata(nodeorrev)
- c = changelogrevision(
- self, d, s, self._copiesstorage == b'changeset-sidedata'
- )
+ d = self._revisiondata(nodeorrev)[0]
+ sidedata = self.sidedata(nodeorrev)
+ copy_sd = self._copiesstorage == b'changeset-sidedata'
+ c = changelogrevision(self, d, sidedata, copy_sd)
return (c.manifest, c.user, c.date, c.files, c.description, c.extra)
def changelogrevision(self, nodeorrev):
"""Obtain a ``changelogrevision`` for a node or revision."""
- text, sidedata = self._revisiondata(nodeorrev)
+ text = self._revisiondata(nodeorrev)[0]
+ sidedata = self.sidedata(nodeorrev)
return changelogrevision(
self, text, sidedata, self._copiesstorage == b'changeset-sidedata'
)
To: marmoute, #hg-reviewers, Alphare
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mercurial-scm.org/pipermail/mercurial-patches/attachments/20210607/48548290/attachment.html>
More information about the Mercurial-patches
mailing list