[PATCH] Add script to rewrite manifest to workaround lack of parent deltas

Maxim Dounin mdounin at mdounin.ru
Wed Aug 26 05:09:07 CDT 2009


Hello!

On Wed, Aug 26, 2009 at 12:36:55AM +0200, Benoit Boissinot wrote:

> On Tue, Aug 25, 2009 at 04:16:23PM +0200, Benoit Boissinot wrote:
> > On Mon, Aug 24, 2009 at 05:16:18PM -0400, Greg Ward wrote:
> > > # HG changeset patch
> > > # User Greg Ward <greg-hg at gerg.ca>
> > > # Date 1233047576 0
> > > # Node ID 9235025c8eb4219a045b8c9d3e95ce5079b2488d
> > > # Parent  20ed9909dbd9251f76cacb463c480488eebf736b
> > > Add script to rewrite manifest to workaround lack of parent deltas.
> > 
> > I tested it in the kernel repo, and there are some nodes with duplicate
> > parents (p1 = p2), so it needs the fix below.
> 
> The result on a fresh clone of the kernel repo (158152 revs in the
> manifest):
> old file size:    703584066 bytes ( 671.0 MiB)
> new file size:    177162218 bytes ( 169.0 MiB)
> shrinkage: 74.8% (4.0x)
> 
> I didn't clone the whole repo, so I don't know how big it is, but I
> think the manifest is 1/2 or 1/3 of it. It would be nice if someone
> could check.

Just in case it's still intresting:

$ du -sh . .hg .hg/store/00manifest.d
1.4G    .
1.0G    .hg
672M    .hg/store/00manifest.d

Maxim Dounin


More information about the Mercurial-devel mailing list