Gitea: [Feature] Migration/mirror from subversion (svn)

Created on 1 Feb 2020  路  7Comments  路  Source: go-gitea/gitea

feature request: add migration/mirror from subversion - like 'git svn' command.

revieweduplicate

Most helpful comment

I work for a organization that migrated from svn to git. Svn is quite different structure from Git and there are no straigtforward way to migrate. First it should be noted that only the repo itself can be migrated; no issues, pull requests or releases, as that is completly organizaiton dependent and dependent on other tools. Then the repo migration will depend completely on the organizaiton svn setup as well, like branch and tag setup. There are some helper tools available to do migrations (e.g. git svn) but you need to write a script for your setup. Once that is done it is quite simple to use gitea's API to get the migration in the way you want. That assumes you have a lot of svn repositories, otherwise it is just easier to do the migration "by hand".
So I agree there should not be a Gitea issue for this.

All 7 comments

I think this is a duplicated issue.

@lunny I tried to find before create new issue. it is first.

4158

yes. closed :-(

Until there is good svn to git migration library available written in golang I don't see how this could possibly be added to Gitea so I propose to closing it as I don't see that happening anytime soon if ever

I work for a organization that migrated from svn to git. Svn is quite different structure from Git and there are no straigtforward way to migrate. First it should be noted that only the repo itself can be migrated; no issues, pull requests or releases, as that is completly organizaiton dependent and dependent on other tools. Then the repo migration will depend completely on the organizaiton svn setup as well, like branch and tag setup. There are some helper tools available to do migrations (e.g. git svn) but you need to write a script for your setup. Once that is done it is quite simple to use gitea's API to get the migration in the way you want. That assumes you have a lot of svn repositories, otherwise it is just easier to do the migration "by hand".
So I agree there should not be a Gitea issue for this.

You can run git-as-svn around Gitea too.

Was this page helpful?
0 / 5 - 0 ratings