[PATCH 1 of 2] revlog: return offset from _chunkraw()

Gregory Szorc gregory.szorc at gmail.com
Tue Jan 5 22:47:08 CST 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://selenic.com/pipermail/mercurial-devel/attachments/20160105/c579c193/attachment.html>


More information about the Mercurial-devel mailing list