Questions tagged [svn2git]

There are multiple utilities called svn2git that do the same task, transforming an SVN repository into one or multiple Git repositories. This tag can be used for any of them.

The KDE svn2git utility is probably the most sophisticated, most flexible and fastest tool amongst the ones called svn2git.

It is fed with a set of rules that define how the SVN content should be transformed into one or even multiple Git repositories or combine different SVN repositories in one SVN location into one Git repository.

It is often used in conjunction with svneverever to easily analyze the history of a repository and its committers to aid in setting up a rules file if the history of the repository was not straightforward.


Another svn2git utility available is the one of nirvdrum which uses git-svn for importing the SVN repository and then does some post-processing which is in total extremely time consuming and produces sometimes a bit of a borked history or missies the history from some point on.

132 questions
0
votes
1 answer

Why do a lot of revisions get lost in git-svn?

I am currently trying to move a couple of projects from svn to git using git-svn. No matter which project I am trying to convert, there are many more svn revisions than git commits. I don't really know svn, so I have a hard time figuring out why…
Maria H.
  • 41
  • 6
0
votes
0 answers

svn2git regex variable substition

Following up on this question: svn2git rules regex I'm migrating our code from SVN to git using svn2git (KDE version). Source tree looks like this: A/foo B/foo C/foo D/foo I'm trying to write a rule that will match on all A,B,C, and D. For A,B,…
EncryptedWatermelon
  • 4,788
  • 1
  • 12
  • 28
0
votes
1 answer

svn2git rules regex

I'm trying to reduce my ruleset for svn2git. My tree looks like this.. A/foo B/foo C/foo D/foo I want to put A, B, and C under a legacy folder and that works. I want D to be it's own top level folder. My current rule is.. match /(A|B|C)/([^/]+)/ …
EncryptedWatermelon
  • 4,788
  • 1
  • 12
  • 28
0
votes
3 answers

SVN to Git Migration with Weird Branching

I'm using the KDE svn-all-fast-export to migrate over an ugly 22GB SVN repository to git. The old maintainers did some very weird branching. I'm running into a case where I need to make 2 branches for a single commit. The tree looks like…
EncryptedWatermelon
  • 4,788
  • 1
  • 12
  • 28
0
votes
3 answers

Space in branch name causing SVN to GIT migration issues

I'm trying to migrate an old SVN repository over to GIT using svn2git (on my Windows box) using the following command: svn2git https://my/svn/url --verbose --authors authors.txt and things were running okay until I hit the following error: fatal:…
Fizz
  • 3,427
  • 4
  • 27
  • 43
0
votes
1 answer

How to maintain svn revision number in svn2git migration repository

Recently one of my Svn project migrated to git using svn2git, is it possible to maintain old revision number in migrated git repository?
venu
  • 2,971
  • 6
  • 40
  • 59
0
votes
1 answer

svn2git large repository migration

I tried svn2git to test a migration from svn to git, like this: svn2git https://my-svn.net/project/ --username $USERNAME I execute this command where git is installed. I perform this in /home/myuser/svn2git/. After some waiting the execution of…
Pravi
  • 1
  • 1
0
votes
1 answer

KDE svn2git rules - defining multiple folders

I have an SVN structure of the following: - Project A - Folder 1 - Folder a - Folder b - Folder 1 - trunk - tags ... - Folder n - trunk - tags - Folder 2 - Folder 3 - Project B In…
Idris.AH
  • 410
  • 1
  • 10
  • 22
0
votes
1 answer

Can I write KDE rules for svn2git without using svneverever

I want to start writing KDE rules for my SVN to Git migration. Can I simply see the SVN structure using 'repo-browser' (TortoiseSVN) and write the rules accordingly instead of installing svneverever to help determine the structure?
Idris.AH
  • 410
  • 1
  • 10
  • 22
0
votes
2 answers

Svn to git migration handling big repositories

I'm working on migration svn repository to git (gerrit) and I'm encountering issues regarding migrating big repository. I use svn2git. fatal: malformed index info 10 error: git-svn died of signal 11 xxxxxx@svn2git-import:~$ Connection reset…
Jomark
  • 31
  • 8
0
votes
1 answer

SVN2GIT - no associated commit metadata from SVN, skipping

I am getting warning "no associated commit metadata from SVN, skipping" I am using https://github.com/nirvdrum/svn2git tool. What does the above message mean? I am trying to migrate whole history from svn to git.
Springhills
  • 360
  • 1
  • 5
  • 12
0
votes
1 answer

Can't svn2git public repos

I need to migrate a customer from SVN to Git, so I wanted first to try svn2git on a public SVN repository. I have found several public repos, e.g., https://svn.alfresco.com/repos/alfresco-open-mirror/alfresco and…
Alex Karnovsky
  • 310
  • 2
  • 15
0
votes
1 answer

migrating svn to git: checksum mismatch on merged file

I'm trying to migrate a SNV Repo to Git manually and run into a problem: I initialized my (odd) branch/trunk/tag structure with git svn init... and then tried to fetch the files while preserving history & logs. But git svn fetch fails when it…
ThePMO
  • 413
  • 4
  • 13
0
votes
1 answer

Error while using svn2git for SVN to GIT migration

I am getting below error when I tried to use svn2git command to import svn files Running command: git svn init --prefix=svn/ --no-metadata --trunk=trunk --tags=tags --branches=branches https://svnserver.com/abc/svn/projectname Running command: git…
0
votes
1 answer

svn2git migration with part of tags and branches

We have an old SVN repo with 30 000 revisions. It contains a projectX with 3 branches with the names branchA, branchB, branchC The 3 branches exist since revision 20 000. The setup of our repo is as…
lvthillo
  • 28,263
  • 13
  • 94
  • 127
1 2 3
8 9