Show More
@@ -268,9 +268,10 b' class changelogrevision(object):' | |||
|
268 | 268 | __slots__ = ( |
|
269 | 269 | r'_offsets', |
|
270 | 270 | r'_text', |
|
271 | r'_sidedata', | |
|
271 | 272 | ) |
|
272 | 273 | |
|
273 | def __new__(cls, text): | |
|
274 | def __new__(cls, text, sidedata): | |
|
274 | 275 | if not text: |
|
275 | 276 | return _changelogrevision(extra=_defaultextra) |
|
276 | 277 | |
@@ -302,6 +303,7 b' class changelogrevision(object):' | |||
|
302 | 303 | |
|
303 | 304 | self._offsets = (nl1, nl2, nl3, doublenl) |
|
304 | 305 | self._text = text |
|
306 | self._sidedata = sidedata | |
|
305 | 307 | |
|
306 | 308 | return self |
|
307 | 309 | |
@@ -613,12 +615,13 b' class changelog(revlog.revlog):' | |||
|
613 | 615 | ``changelogrevision`` instead, as it is faster for partial object |
|
614 | 616 | access. |
|
615 | 617 | """ |
|
616 | c = changelogrevision(self.revision(node)) | |
|
618 | c = changelogrevision(*self._revisiondata(node)) | |
|
617 | 619 | return (c.manifest, c.user, c.date, c.files, c.description, c.extra) |
|
618 | 620 | |
|
619 | 621 | def changelogrevision(self, nodeorrev): |
|
620 | 622 | """Obtain a ``changelogrevision`` for a node or revision.""" |
|
621 | return changelogrevision(self.revision(nodeorrev)) | |
|
623 | text, sidedata = self._revisiondata(nodeorrev) | |
|
624 | return changelogrevision(text, sidedata) | |
|
622 | 625 | |
|
623 | 626 | def readfiles(self, node): |
|
624 | 627 | """ |
General Comments 0
You need to be logged in to leave comments.
Login now