Opened 9 years ago

Closed 3 years ago

#1654 closed task (wontfix)

Provide scripts to automate mirroring of SVN repositories to GIT repositories

Reported by: strk Owned by: sac@…
Priority: normal Milestone:
Component: SysAdmin Keywords: git, svn
Cc: Mateusz Łoskot

Description

It would be helpful to provide scripts to automate the mirroring of SVN repositories to GIT repositories.

I've done this for PostGIS and put scripts in a private repo here: https://git.osgeo.org/_gogs_/postgis/repository-sync-scripts (ask me for permissions of you want to see them). The problem with those scripts is that they rely on the availability of an SVN username to "Real Name <email>" for use in the GIT Author field.

By providing OSGeo scripts we could make use of an LDAP lookup for that, which would simplify things a lot for those who want to move to GIT.

Change History (5)

comment:1 by strk, 9 years ago

Keywords: git svn added

comment:2 by strk, 9 years ago

From git-svn manual:

--authors-prog=<filename>
  If this option is specified, for each SVN committer name that does not exist in the authors file, the given file is executed with
  the committer name as the first argument. The program is expected to return a single line of the form "Name <email>", which will be
  treated as if included in the authors file.

comment:3 by strk, 9 years ago

Another issue for mirroring is storing the credentials to push to the target repository.

comment:4 by strk, 9 years ago

For the credentials, I've registered an "osgeo-bot" user on gitlab.com and registered there the SSH key of the "git" user on "git.osgeo.org" machine. Not having an email to use for these things I used my own, but it would be useful to have a proper osgeo email to register these services as.

comment:5 by robe, 3 years ago

Resolution: wontfix
Status: newclosed

I think this is moot as most have stopped using svn already.

Note: See TracTickets for help on using tickets.