hg convert - can't read from repo type

Ken Blake kblake2 at gmail.com
Thu Nov 1 14:38:21 CDT 2007


Patrick,

On 11/1/07, Patrick Mézard <pmezard at gmail.com> wrote:
> Ken Blake a écrit :
> > The conversion took nearly 14 hours.
> > The average conversion time per changeset was ~1.5 seconds.
>
> Just to compare apples to oranges (git repository, MacBook Pro):
>
> $ time hg convert rails_git
>
> real    17m53.557s
> user    4m20.548s
> sys     11m43.950s
>
> $ hg verify
> [...]
> 1865 files, 5545 changesets, 17076 total revisions
>
> $ du -sk .hg/
> 16040   .hg/
>
> I don't expect CVS conversion process itself to take so much time, not talking about building a repository of this size. While you can enable compression for cvsps through cvspsrc, the converter itself does not handle it (or it can be done transparently by cvs server but I am not aware of that). Supporting compression may be a huge win here.

Your performance is about .2 seconds per changeset, about 7 times
faster.  It's certainly not my machine speed since I have a dual xeon
3.2GHz, 8GB memory (I run large problems).  My best guess is that
after cvsps is run, it still needs to request the diffs from the cvs
server and it is a remote server.  Just for our software development,
we have several offices spread out over the US and Europe.  I suppose
it would make sense for me to ssh to where the cvs server is and run
this locally but I'm not currently setup for that.

Thanks for the info.
Ken



More information about the Mercurial mailing list