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