Thorough RevlogNG Format Specification
Benoit Boissinot
benoit.boissinot at ens-lyon.org
Thu Nov 5 14:38:08 CST 2009
On Thu, Nov 05, 2009 at 07:17:23PM +0100, William Ledoux wrote:
> On Thu, Nov 5, 2009 at 7:02 PM, Matt Mackall <mpm at selenic.com> wrote:
>
> > On Thu, 2009-11-05 at 18:54 +0100, William Ledoux wrote:
> >
> More hints here:
> >
> >
> > http://mercurial.selenic.com/wiki/Presentations?action=AttachFile&do=view&target=ols-mercurial-paper.pdf
> >
> >
> Thank you, I already stumbled upon this one ;)
> I based my parsing on this at first, but after I discovered that you jumped
> to revlogNG since. (then the revlog index described page 5 is outdated)
> But it does not answer to my questions about the details of re-building the
> changelog content from the diff.
The diff algorithm didn't change from the first version, it's the same
format.
Basically you need to retrieve the base version and the delta chain,
then the patching is quite simple, There's a C version in
mercurial/mpatch.c if it helps.
regards,
Benoit
--
:wq
More information about the Mercurial
mailing list