Re: [B.A.T.M.A.N.] New BMX website at www.bmx6.net

Sven Eckelmann
2010-12-20T20:31:52Z

[-- Attachment #1: Type: Text/Plain, Size: 1664 bytes --]

Axel Neumann wrote:
> On Montag 20 Dezember 2010, you wrote:
> > Please take a look at git://git.open-mesh.org/ecsv/test/bmx.git
> > I don't say that it is the holy grail of svn-to-git conversation, but I
> > think it could be a better conversation than your bmxd.git
>
> I am kind of git newbie. You are right and I see what you mean. Finally I
> decided to simply fetch the bmx-0.3.x branch from the repository you
> mentioned and offer it as a bare master branch at
> git://git.bmx6.net/bmxd.git .
>
> Is there a one line command you used to create this? Essentially I used:
> git svn init http://downloads.open-mesh.org/svn/batman/trunk/batman-
> experimental/
> to create my former repository but obviously this missed some initial
> commits, full names,...:-(

No, not really. I tried different things in the past, but none was really able
to create an useful export. For example the batman-adv repo was created using
following command:

$ git svn clone --minimize-url --follow-parent --use-log-author -A \
/home/batman/batman-adv-sync/batman-svn-git-sync/.git/AUTHORS \
--no-metadata http://downloads.open-mesh.org/svn/batman/trunk/batman-adv/

But your history is a little bit more complex. For example git-svn will not
resolve the symbolic links - but also svn-all-fast-export wasn't able to
export all those things correctly when I tried it. My solution was to write a
simple exporter with a static mapping [1] which was optimized for the needs of
open-mesh.org. It is a little bit hacky, but at least it solved all problems
quite well.

Best regards,
Sven

[1] http://gitorious.org/git-conversation-svn