Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 391795 - Migrate releng repository to git
Summary: Migrate releng repository to git
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Infrastructure
Classification: Unclassified
Component: Git (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Infrastructure
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-24 18:28 UTC by Jorge Manuel B. S. Vicetto
Modified: 2012-05-05 18:19 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Create svn2git identity mapping from userinfo.xml (mapping.py,390 bytes, text/plain)
2012-01-10 00:20 UTC, Sebastian Pipping
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jorge Manuel B. S. Vicetto (RETIRED) Gentoo Infrastructure gentoo-dev 2011-11-24 18:28:54 UTC
The release team would like to migrate the releng repository[1] to git.
We will need to keep access to both repos while we test the migration and update the scripts to use the new repo.

 [1] - http://sources.gentoo.org/cgi-bin/viewvc.cgi/releng/
Comment 1 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2011-11-25 02:06:50 UTC
I'm pretty sure the overlays team is more suited for migrations.. ?
Comment 2 Sebastian Pipping gentoo-dev 2011-11-25 03:08:58 UTC
Speaking for myself: no time for this before January.

Is releng aware that they could technically do the actual conversion of the SVN history using dev-vcs/svn2git or git-svn and dev-vcs/svneverever themselves and only leave setup of a new git repo to push to to infra or the overlays team?
Comment 3 Christian Ruppert (idl0r) gentoo-dev 2011-11-25 18:17:56 UTC
infra.. at least for now. I think we're going to use git.gentoo.org instead.
Comment 4 Raúl Porcel (RETIRED) gentoo-dev 2012-01-09 20:07:05 UTC
Any progress? :)
Comment 5 Sebastian Pipping gentoo-dev 2012-01-10 00:20:55 UTC
Created attachment 298433 [details]
Create svn2git identity mapping from userinfo.xml

Results
=======
Please check the output of the conversion at
http://git.overlays.gentoo.org/gitweb/?p=proj/releng.git;a=summary

The group of comitters is

  @releng = agaffney angelos armin76 dertobi123 jmbsvicetto
              kingtaco klausman kumba mattst88 nightmorph
              ranger redhatter robbat2

but these devs have not pubkeys in gitolite as of now:

  dertobi123, klausman, kumba, ranger, redhatter


On the process
==============
Seems to be a single branch ("trunk") only.

Conversion was done using dev-vcs/svn2git-1.0.5 with command

  # svn2git --rules=rules --identity-map=identity --add-metadata \
      --stats releng-rsync/

The svn repo was ripped using

  # rsync -a rsync://anonvcs.gentoo.org/vcs-public-svnroot/releng/ releng-rsync

The identity mapping was extracted from userinfo.xml using the script attached.
The rules file is rather trivial:

  create repository releng.git
  end repository

  match /trunk/
    repository releng.git
    branch master
  end match

  match /branches/
  end match

  match /tags/
  end match
Comment 6 Sebastian Pipping gentoo-dev 2012-01-10 00:22:27 UTC
Releng, please close the bug if the results are sufficient.
Comment 7 Theo Chatzimichos (RETIRED) archtester gentoo-dev Security 2012-01-14 11:20:42 UTC
(In reply to comment #5)
> but these devs have not pubkeys in gitolite as of now:
> 
>   dertobi123, klausman, kumba, ranger, redhatter

We have a tool, scripts/fetch-ssh-key.pl that fetches keys from LDAP easily. I wasn't sure if you were aware of the tool already, but anyway I've added those devs in gitolite now.
Comment 8 Jorge Manuel B. S. Vicetto (RETIRED) Gentoo Infrastructure gentoo-dev 2012-01-14 15:55:34 UTC
(In reply to comment #6)
> Releng, please close the bug if the results are sufficient.

Sebastian,

let me start by thanking you for the conversion.
I've given a quick look through gitweb and it looks ok. Let me clone it locally and give it a more thorough look before I close this bug.

@releng:
Has anyone else checked the git repo?
Comment 9 Raúl Porcel (RETIRED) gentoo-dev 2012-01-14 19:44:51 UTC
(In reply to comment #8)
> 
> @releng:
> Has anyone else checked the git repo?

Looks okay here