[Kde-scm-interest] Mercurial conversion of kdelibs
Thiago Macieira
thiago at kde.org
Tue Jan 8 18:44:31 CET 2008
Apparently Mercurial comes with a nifty tool that allows us to convert from
Git to Mercurial.
So I ran:
$ hg convert git3/KDE/kdelibs hg/kdelibs
After a while:
$ du -sh hg/kdelibs/.hg
416M hg/kdelibs/.hg
For reference:
$ du -sh git3/KDE/kdelibs/.git
241M git3/KDE/kdelibs/.git
However, hg seems to have a weird notion of branches:
$ hg branches
default 74638:9cd90cab9ac2
$ hg tip -v
changeset: 74638:9cd90cab9ac2
tag: tip
parent: -1:000000000000
user: nobody <nobody at localhost>
date: Wed May 08 17:58:43 2002 +0000
description:
This commit was manufactured by cvs2svn to create tag
'ARTS_1_0_1_RELEASE'.
svn path=/tags/ARTS_1_0_1_RELEASE/kdelibs/; revision=154505
committer: nobody <nobody at localhost>
I searched hg log's output for the last commit to Subversion trunk. I got:
$ hg id -n
73049
$ hg log -r .
changeset: 73049:954ea2f61d88
user: Fredrik Höglund <fredrik at kde.org>
date: Thu Dec 27 20:31:03 2007 +0000
summary: Implement support for repeat-x, repeat-y and no-repeat in
CanvasPatternImpl.
Which matches the tip of refs/heads/master in the Git repository, including
the broken encoding of the committer's name.
I guess that for a correct conversion, I should strip the Git repositories of
their branches except for "master". Then that begs the question: where do
those other branches go?
I was going to do some time comparisons on some operations, but I don't think
we have to. We know Git is faster on Linux, but Mercurial is still fast
enough, especially if compared to network-bound operations in Subversion. My
worry is actually Git's performance on non-Linux systems. I found out about
this Mercurial conversion tool because a developer here at Trolltech
converted our repo to it since Git is too slow on MacOS X. (git status takes
*several* seconds to run)
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/kde-scm-interest/attachments/20080108/a6cd6aea/attachment.pgp
More information about the Kde-scm-interest
mailing list