[SAC] [OSGeo] #1654: Provide scripts to automate mirroring of SVN repositories to GIT repositories

#1654: Provide scripts to automate mirroring of SVN repositories to GIT
repositories
---------------------------+-------------------
Reporter: strk | Owner: sac@…
     Type: task | Status: new
Priority: normal | Milestone:
Component: Systems Admin | Keywords:
---------------------------+-------------------
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.

--
Ticket URL: <https://trac.osgeo.org/osgeo/ticket/1654&gt;
OSGeo <http://www.osgeo.org/&gt;
OSGeo committee and general foundation issue tracker.

#1654: Provide scripts to automate mirroring of SVN repositories to GIT
repositories
---------------------------+--------------------
Reporter: strk | Owner: sac@…
     Type: task | Status: new
Priority: normal | Milestone:
Component: Systems Admin | Resolution:
Keywords: git, svn |
---------------------------+--------------------
Changes (by strk):

* keywords: => git, svn

--
Ticket URL: <https://trac.osgeo.org/osgeo/ticket/1654#comment:1&gt;
OSGeo <http://www.osgeo.org/&gt;
OSGeo committee and general foundation issue tracker.

#1654: Provide scripts to automate mirroring of SVN repositories to GIT
repositories
---------------------------+--------------------
Reporter: strk | Owner: sac@…
     Type: task | Status: new
Priority: normal | Milestone:
Component: Systems Admin | Resolution:
Keywords: git, svn |
---------------------------+--------------------

Comment (by strk):

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.
}}}

--
Ticket URL: <https://trac.osgeo.org/osgeo/ticket/1654#comment:2&gt;
OSGeo <http://www.osgeo.org/&gt;
OSGeo committee and general foundation issue tracker.

#1654: Provide scripts to automate mirroring of SVN repositories to GIT
repositories
---------------------------+--------------------
Reporter: strk | Owner: sac@…
     Type: task | Status: new
Priority: normal | Milestone:
Component: Systems Admin | Resolution:
Keywords: git, svn |
---------------------------+--------------------

Comment (by strk):

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

--
Ticket URL: <https://trac.osgeo.org/osgeo/ticket/1654#comment:3&gt;
OSGeo <http://www.osgeo.org/&gt;
OSGeo committee and general foundation issue tracker.

#1654: Provide scripts to automate mirroring of SVN repositories to GIT
repositories
---------------------------+--------------------
Reporter: strk | Owner: sac@…
     Type: task | Status: new
Priority: normal | Milestone:
Component: Systems Admin | Resolution:
Keywords: git, svn |
---------------------------+--------------------

Comment (by strk):

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.

--
Ticket URL: <https://trac.osgeo.org/osgeo/ticket/1654#comment:4&gt;
OSGeo <http://www.osgeo.org/&gt;
OSGeo committee and general foundation issue tracker.