On Tue, Feb 12, 2013 at 05:34:43PM -0600, Graham Booker wrote:
> On Tue, Feb 12, 2013 at 5:21 PM, Thijs Alkemade <m...@thijsalkema.de> wrote:
> >
> > Okay, I took a closer look.
> >
> > * In the repository that ran the conversion, the .hg/git directory is
> > 909MB.
> >   This is a fresh conversion, but might have included a couple of local
> >   commits I never pushed.
> >   It was a fresh conversion, as after I tried `git gc`, hg-git was unable
> > to
> >   push to github. I guess it accidentally deleted something git considers
> >   garbage but hg-git doesn't.
> > * https://github.com/settings/repositories shows it as:
> >         xnyhps/adium 2681.82MB
> > * Cloning that resulted in a 648 MB directory (so working directory
> >   and .git).
> > * `git gc --aggressive` brought that down to 386 MB.
> >
> > I don't really know what's going on with the size Github shows. I'd guess
> > they run `git gc` at least once in a while. I'll try deleting the
> > repository, and pushing a clone that was gc'ed locally first instead.
> >
> 
> You may want to run the repack with the appropriate options instead of gc
> --aggressive:
> http://metalinguist.wordpress.com/2007/12/06/the-woes-of-git-gc-aggressive-and-how-git-deltas-work/
> 
> Since this is a one-time operation, you should run the repack with the -f.
>  I've played with this on repositories converted from SVN, and I found that
> repack tends to do better than gc --aggressive in terms of repository size.
>

Thanks, I tried this overnight, with the following results:

* A local clone of the .hg/git directory was 1GB (probably due to now having 
  checked out files too).
* Running `git repack -f -a -d --depth=250 --window=250` brought it back to 
  395MB.
* I just pushed it to a fresh repository on Github, which shows it as 261MB. 
  (But it appears to me not all bookmarks/branches were pushed, I only see 
  master). It's at https://github.com/xnyhps/adium. The other one was moved
  to https://github.com/xnyhps/adium-bad.

This is looking quite promising, thanks. :)

Thijs

Attachment: pgpFeoMAHcBlk.pgp
Description: PGP signature

Reply via email to