hg-git converted repo is massive

Sean Farley sean.michael.farley at gmail.com
Mon Jan 28 01:56:26 UTC 2013


On Sun, Jan 27, 2013 at 7:49 PM, Augie Fackler <raf at durin42.com> wrote:
> (+hg-git list)
>
> On Jan 27, 2013, at 5:40 PM, Harvey Chapman <hchapman-hg at 3gfp.com> wrote:
>
>> I wanted to keep a local copy of a kernel repo in our mercurial server. So I cloned the 660M git repo and got a 5GB mercurial repo (not including the internal copy of the git repo). Is there anything I can do about this?
>
> Does 'hg convert' produce such an insane repo?
>
>> Is there any way to start history in the cloned repo at a much more recent commit?
>
> hg-git doesn't have this feature, but it might be useful if someone sent a patch. I'm not sure. I'm a little surprised that hg-git produced such a massive hg repo out of that git repo.

Really? I have yet to see a hg repo that is less than 3x the size of
the same repo in git. I can usually get the size down to around 2x if
I use format.generaldelta=True. Perhaps, hg-git should enable this by
default? Maybe also run the hg-shrink extension by default?



More information about the Mercurial mailing list