[GRASS-dev] [GRASS GIS] #3722: migrate grass svn repositories to git

GRASS GIS trac at osgeo.org
Mon Jan 28 05:06:12 PST 2019


#3722: migrate grass svn repositories to git
--------------------------+---------------------------------
  Reporter:  martinl      |      Owner:  grass-dev@…
      Type:  task         |     Status:  new
  Priority:  major        |  Milestone:
 Component:  Default      |    Version:  unspecified
Resolution:               |   Keywords:  svn, git, migration
       CPU:  Unspecified  |   Platform:  Unspecified
--------------------------+---------------------------------

Comment (by pmav99):

 I don't have any experience with SVN to GIT conversions, but shouldn't
 there be 70k+ commits?

 I did run a couple of tests with subgit. It seems a solid project. If
 someone wants to try it the commands for only converting trunk is (needs 6
 hours):
 {{{
 subgit configure https://svn.osgeo.org/grass/grass/trunk --layout
 directory grass_trunk.git
 subgit install grass_full.git
 }}}
 The result is a repo with 36800+ commits which is comparable to 36743.
 That's why I asked, if that was trunk only.

 I also tried to convert the whole SVN repo:
 {{{
 subgit configure https://svn.osgeo.org/grass/grass --layout std
 grass_full.git
 subgit install grass_full.git
 }}}
 but there is some problem with revision 68772. The logs suggest that it
 has to do an old SVN bug: https://subversion.apache.org/docs/issue4129 .
 This is the log:

 {{{
 SubGit version 3.3.5 ('Bobique') build #4042

 Translating Subversion revisions to Git commits...

 INSTALLATION FAILED

 error: The Subversion repository is corrupted at revision r68772 because
 of Subversion issue http://subversion.apache.org/docs/issue4129 .
 error: To prevent this error in the futureupdate your Subversion server
 version to 1.7.5 or to 1.6.18.
 error: To recover your repository perform svnadmin dump/load procedure:
 error: $ svnadmin dump path/to/svn/repository > repo.dump
 error: $ svnadmin create path/for/recovered/svn/repository
 error: $ svnadmin load path/for/recovered/svn/repository < repo.dump
 error: After that please re-clone the repository.
 error: svn: E204900: Checksum mismatch in
 branches/releasebranch_7_2/lib/db/sqlp/sql.html: expected
 7245ea62da02566d2edcab901919d4e9 but found
 0061e8e51c3b551ac6123c88a66940cc
 error: Checksum mismatch in
 branches/releasebranch_7_2/lib/db/sqlp/sql.html: expected
 7245ea62da02566d2edcab901919d4e9 but found
 0061e8e51c3b551ac6123c88a66940cc
 error: Unexpected error has occurred; please report along with the logs
 ('/home/username/Prog/svn/subgit-install-20190128-125015.zip')
 error:   to http://issues.tmatesoft.com/, thank you!
 }}}

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/3722#comment:11>
GRASS GIS <https://grass.osgeo.org>



More information about the grass-dev mailing list