On 1/5/2014 2:42 PM, Matt Wilkie wrote:

On Sun, Jan 5, 2014 at 10:53 AM, Terry Brown <terry_n_br...@yahoo.com <mailto:terry_n_br...@yahoo.com>> wrote:

    I get 1.1 Mb / sec. downloand :-) but 87 Kb / sec.
    upload



good point. I was thinking of standard dnld speeds. Unfortunately I've no idea what the upload payload size is. I think Jake's idea of breaking things into pieces is probably wise if this current attempt doesn't get far.

-matt

I just pushed ~9000 commits (commits in branches on launchpad are apparently visible in the mainline repo when importing to git) to the leo-bzr-test repo (https://github.com/leo-editor/leo-bzr-test), and it took me a whole 6 minutes 13 seconds:

$ time git push -u origin master
Counting objects: 65927, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (11624/11624), done.
Writing objects: 100% (65927/65927), 45.01 MiB | 130 KiB/s, done.
Total 65927 (delta 53728), reused 65927 (delta 53728)
To g...@github.com:leo-editor/leo-bzr-test.git
 * [new branch]      master -> master
Branch master set up to track remote branch master from origin.

real    6m13.269s
user    0m5.178s
sys     0m2.682s

But, I did a few high-powered compression jobs before the push, to make sure it wouldn't take forever and the repo would be a reasonable size:

$ git repack -A -d
Counting objects: 65927, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (16752/16752), done.
Writing objects: 100% (65927/65927), done.
Total 65927 (delta 48601), reused 65927 (delta 48601)

$ git gc --aggressive --prune=now
Counting objects: 65927, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (65352/65352), done.
Writing objects: 100% (65927/65927), done.
Total 65927 (delta 53728), reused 10540 (delta 0)
Removing stale temporary file .git/objects/pack/tmp_pack_nxSK8a
Removing stale temporary file .git/objects/pack/tmp_pack_pf9Ria
Removing stale temporary file .git/objects/pack/tmp_pack_wUMK2c
Removing stale temporary file .git/objects/pack/tmp_pack_ylWGHa

These combined shrunk the .git folder from 1.5Gb (!!!!) down to 48Mb (wow, what a difference!).

The whole process was like this (for future reference):

$ mkdir leo-bzr-test.git
$ cd leo-bzr-test.git
$ git init
$ bzr fast-export --plain ../leo/leo-editor ../leo.fi
$ git fast-import < ../leo.fi
$ git reset --hard
$ git repack -A -d
$ git gc --aggressive --prune=now
$ git remote add origin g...@github.com:leo-editor/leo-bzr-test.git
$ git push -u origin master

Phew!

Edward, Terry, Ville, and all the devs: if this repo looks good to you, we're golden to move it to leo-editor/leo-editor.git, and have it be the main line of development. After that would be migrating bugs to github, for which it seems there is a script available (https://github.com/termie/lp2gh).

Exciting day!

-->Jake

--
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to