[Kde-scm-interest] svn-all-fast-export versus the FreeBSD svn repository

Torgny Nyblom kde at nyblom.org
Mon May 3 20:41:40 CEST 2010


On Monday 03 May 2010 15.56.52 Thiago Macieira wrote:
> Em Quarta-feira 28 Abril 2010, às 16:27:35, Ulrich Spörlein escreveu:
> > > Later, when a branch is being made, it searches what was the SVN commit
> > > immediately prior to the the source revision (qLowerBound will do that)
> > > and  tells git-fast-import that that's the source. In
> > > Repository:;createBranch,
> > > 
> > > where it says:
> > >     fastImport.write("reset " + branchRef + "\nfrom " + branchFromRef +
> > > 
> > > "\n\n");
> > > 
> > > 
> > > 
> > > It needs to replace
> > > 
> > >       "\nfrom " + branchFromRef
> > > 
> > > with
> > > 
> > >       "\nfrom :" + QByteArray::number(mark)
> > > 
> > > Note, however, that this list of commits would not be saved, which
> > > means this  process would work only for a full run of the tool.
> > > Incremental runs wouldn't load previous marks and the tool wouldn't
> > > know which commits it exported.
> > 
> > My C++ fu is pretty weak, if someone could send me some rough patches
> > to get me started I might be able to finish and debug them.
> > 
> > Also, please have a look at
> > https://www.spoerlein.net/gitweb/?p=svn2git.git;a=commitdiff;h=2eab29849a
> > 16 b6ffa4f78d0392088e98b059d960 or git://acme.spoerlein.net/svn2git.git
> > 
> > where I implemented the svn "replace" action for directories, which is
> > required to get the main branches of the FreeBSD svn repo converted
> > correctly.
> 
> I don't have time to look into this.
> 
> Can someone else in the mailing list review Uli's patch and apply to the
> mainline svn2git?
> 
> Also, the code I suggested isn't hard to implement. Someone please look
> into it.

I've got both done and is testing them now.

/Torgny


More information about the Kde-scm-interest mailing list