[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Mass svn-to-git migration - Progress report



On Wed, Apr 12, 2023 at 05:49:46PM +0200, Diederik de Haas wrote:
> > - If it needs to be done, isn't it way better to do a mass-migration of all
> > the repos which haven't been converted yet? There may be a high similarity
> > between the various SVN repos, but all the projects within one SVN repo
> > likely share many things? Like svn-user to git-user mapping?


Guess I missed this one, sorry!

> On Friday, 27 January 2023 20:14:43 CEST Jelmer Vernooij wrote:
> >  * lintian-brush has a mapping of team names to locations in salsa,
> >    here:
> > https://salsa.debian.org/jelmer/lintian-brush/-/blob/master/lintian_brush/
> > salsa.py

I don't think team names are so relevant to my concern, though…?

> While I haven't made such a list yet, it surely was considered.
> As for the how, that'll likely be a manual task in which I will try to 
> construct such a mapping file by (a lot of) searching.

Indeed, filling all of them can be quite annoying.

> > Did you prepare such matching list?  Like, I have a 111 lines authors
> > file that I used in the past for some conversions I did (coming from the
> > debian-med team, fwiw), but I'm sure that if you are going to properly
> > convert collab-maint you'll need quite a longer list.
> 
> One of the reasons for posting about this is the hope that someone else who 
> may have experience with a SVN-to-Git migration would share their experiences, 
> tools and other things that could benefit such a migration, like f.e. an 
> authors list. So if you could share that, that would be most welcome :-)

What I used in the past is this script:


|        if [ -z "$SVN_URL" ]; then
|            export SVN_URL=svn://svn.debian.org/svn/debian-med/trunk/packages/
|        fi
|        if [ $# != 1 ] ; then
|            echo "Usage: $0 <package to convert>"
|            exit
|        fi
|        export PKG=$1
|
|        git svn clone \
|            ${SVN_URL}/${PKG} \
|            -T /trunk/${PKG} \
|            --tags  tags \
|            --trunk trunk \
|            --authors-file=debian-med-authors \
|            --prefix=svn-import/ \
|            --no-metadata \
|            ${PKG} 2>&1 | tee >> svn2git_${PKG}.log



I'll attach the authors-file that I used (which has some addition to the
one from the debian-med repo, although probably I also don't have the
latest version) in a separate private email, since it's likely better to
not spread a collection of email addresses to a public mailing list.

Another possibly nice authors-file could be the one that was used in the
DPMT/PAPT migration.  Stefano Rivera <stefanor@debian.org> took care of
the PAPT one, so maybe email him to see if he has a compiled list of
authors?



So, overall, really nothing particularly complex.

-- 
regards,
                        Mattia Rizzolo

GPG Key: 66AE 2B4A FCCF 3F52 DA18  4D18 4B04 3FCD B944 4540      .''`.
More about me:  https://mapreri.org                             : :'  :
Launchpad user: https://launchpad.net/~mapreri                  `. `'`
Debian QA page: https://qa.debian.org/developer.php?login=mattia  `-

Attachment: signature.asc
Description: PGP signature


Reply to: