How to tell revlog and revlogng apart
Wujek Srujek
wujek.srujek at googlemail.com
Mon Apr 9 15:43:38 UTC 2012
Hi. Ok, I'll look in the code.
But I think you got me wrong: I am not trying to write a mercurial clone; I
am trying to learn a bit of python while getting to know mercurial (a tiny
bit) better from the inside - and all I am doing is to write some code to
read the revlogs (dirstate was too easy). It is better than 'hello, world',
so I wouldn't consider it a waste of my time, though, you are being a
little harsh here ;d
wujek
On Mon, Apr 9, 2012 at 5:33 PM, Matt Mackall <mpm at selenic.com> wrote:
> On Mon, 2012-04-09 at 11:54 +0200, Wujek Srujek wrote:
> > Hi. I seem not to be able to find a description how to tell revlog and
> > revlogng formats apart. revlogng has the first 4 bytes (big endian)
> serving
> > as the header (which actually are the offset of the first entry, always
> 0),
> > where the low word is the format (currently only 1?) and the high word is
> > the flags (currently only lowest bit: inline or not?). How about the old
> > revlog format? How can I tell what file I am working with? Is the offset
> > (first 4 bytes) always 0s? Can the old format be used even if the repo
> > requires 'store'?
>
> At this level of detail, you need to read the source for answers. We're
> not going to walk you through how to write a Mercurial clone on the
> list. It's almost certainly a bad use of your time and it's definitely a
> bad use of ours.
>
> --
> Mathematics is the supreme nostalgia of our time.
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20120409/c8ff0ef9/attachment-0002.html>
More information about the Mercurial
mailing list