# HG changeset patch # User Benoit Boissinot # Date 2013-02-09 11:08:02 # Node ID b280f3bfc8a0b7ab35d8c9883c65058218f2f09c # Parent 3af017bd8ef94c0f1a754d220917e6df47e042a0 revlog: document v0 format diff --git a/mercurial/revlog.py b/mercurial/revlog.py --- a/mercurial/revlog.py +++ b/mercurial/revlog.py @@ -91,6 +91,14 @@ def decompress(bin): return bin[1:] raise RevlogError(_("unknown compression type %r") % t) +# index v0: +# 4 bytes: offset +# 4 bytes: compressed length +# 4 bytes: base rev +# 4 bytes: link rev +# 32 bytes: parent 1 nodeid +# 32 bytes: parent 2 nodeid +# 32 bytes: nodeid indexformatv0 = ">4l20s20s20s" v0shaoffset = 56