[PATCH 1 of 2] revlog: return offset from _chunkraw()
Gregory Szorc
gregory.szorc at gmail.com
Wed Jan 6 04:47:08 UTC 2016
On Tue, Jan 5, 2016 at 8:39 PM, Martin von Zweigbergk <martinvonz at google.com
> wrote:
>
>
> On Tue, Jan 5, 2016 at 7:52 PM Gregory Szorc <gregory.szorc at gmail.com>
> wrote:
>
>> + Callers will need to call ``self.start(rev)`` and
>> ``self.length(rev)``
>> + to determine where each revision's data begins and ends.
>
>
> Is that still true? Is the returned offset/start different from
> self.start(rev)?
>
The function returns data for 1 or more revisions. The first revision will
have offset == self.start(rev), so you don't need to call anything if you
are only getting a single revision.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-devel/attachments/20160105/c579c193/attachment-0002.html>
More information about the Mercurial-devel
mailing list