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
2
votes
2 answers

svn2git fails to correctly import tags

I have an SVN-repository which I would like to convert into a git-repository. I'm using svn2git to achieve this. Unfortunately it seems like the tool is having problems getting the tags right. My SVN-repository looks like…
Vince
  • 1,517
  • 2
  • 18
  • 43
2
votes
1 answer

svn2git is ignoring "--username"-parameter

I just tried importing an svn-repo to a git repo, but I'm facing a bit of a problem. After starting to import the first repo with svn2git http://path.to.repo.com/repos/a/ --username abc --verbose i thought "this is taking too long". And since at…
Vince
  • 1,517
  • 2
  • 18
  • 43
2
votes
1 answer

Altering folder structure while converting svn repo to git repo using svn2git

I am migrating a SVN repository to Git. The svn structure is like shown below Root + branches + b1 + b2 + development_branches + d1 + d2 + tags + trunk The situation here is the folder branches contains…
vumaasha
  • 2,765
  • 4
  • 27
  • 41
1
vote
1 answer

Svn2Git rebase returns error 'too many arguments'

I managed to migrate a repository from SVN to GitLab via svn2git a couple days ago as a test. I used svn2git because I needed a one way/cut over migration. There have been some new commits on SVN (the Git repo remains untouched) since and I'm trying…
Serynsera
  • 11
  • 1
1
vote
1 answer

/svn2git/svn-all-fast-export not creating .git directory

I am in the process of moving all of our projects from Subversion to Git. For projects that did not need to retain any branches, I have had success using git-svn in a manner that purposely ignored all branches & tags. I am now using the "KDE…
zemog
  • 11
  • 2
1
vote
1 answer

Get list of files changed before a particular date of last release or any commit ID

We are migrating from SVN to GIT and in SVN we have a revision number which we are using to get the list of files changed up to a given HEAD version using ant scripts. How can we do this in a similar way for GIT? Thanks in advance, Devidutta Panda
1
vote
2 answers

Kde SVN2Git. Error: "branch_1" in repository "my_repo" is branching from branch "branch_2" but the latter doesn't exist. Can't continue

I'm trying to migrate an SVN repository with over 26,000 revisions to multiple Git repositories using (Kde) SVN2GIT. One specific repository generates an error while migrating. This is why I reduced rules for migration to this specific…
jeka_gompa
  • 61
  • 7
1
vote
1 answer

How to clone local svn repository to local git repository?

Recently I am working on migrating one of my SVN repository to Git. I am able to do so if I use my svn repository on internet. But the repository is too big (It has over 60000 commits) so it is taking a very long time to do so. The internet gets…
1
vote
1 answer

Retaining svn copy history when converting to git using kde svn2git tool

My question is very similar to Retaining svn copy history when converting to git except that I am using the free kde svn2git tool To summarize: I'm trying to convert a single SVN repo over to a single git repo. After migration of the svn repository…
conrad
  • 19
  • 4
1
vote
0 answers

Fix git repo that mimics bare repository structure but is not

After converting my SVN repository to a Git repository, I was left with a folder with all the contents that would normally be in a .git folder in the top level directory e.g. Repo (top level directory) - branches folder - hooks folder - info…
Idris.AH
  • 410
  • 1
  • 10
  • 22
1
vote
1 answer

Need history of already migrated SVN-GIT

I've migrated my SVN-GIT manually by just copying the folders to another git folder and pushing them to bitbucket. now i need the history of trunk from svn. can i get that now ? If possible can i delete present trunk and move it back again. we are…
Tyson
  • 61
  • 4
1
vote
1 answer

what's the 'marks' file in repo folder generated by svn-all-fast-export for?

I am using the svn2git tool namely svn-all-fast-export written by the KDE guys to migrate some repos from SVN to Git. Sources are available at github In the resulting Git bare folder, there is a file marks-. It contains entries like: :13…
martin-h
  • 69
  • 1
  • 8
1
vote
2 answers

Errors running qmake && make

I am trying to install svn2git on Windows. At the moment, I have svn2git cloned repo in my C:/ directory. Qt4 (this is the version specified in the manual) is needed to build the However, I have problems installing Qt4 correctly it seems. Currently,…
Idris.AH
  • 410
  • 1
  • 10
  • 22
1
vote
1 answer

Why does 'git repack' sometimes say 'Nothing new to pack.' and other times it repacks everything (with no changes to the repo)?

I have a large git repository with 17 years of history. After converting it with svn2git, I usually do a 'git repack -a -d -f'. This says 'Nothing new to pack.' Then if I push it to the server (in my case Bit Bucket), and then locate the repository…
eeijlar
  • 1,232
  • 3
  • 20
  • 53
1
vote
1 answer

Split svn2git in multiple revisions

I'm using svn2git to migrate a svn repo to a git repo. The svn repo is pretty big. The first thing I tried was: $ mkdir repo $ cd repo $ svn2git https://svn/repo/ --revision 1:40000 --username xxx This started well but after some houres I…
DenCowboy
  • 13,884
  • 38
  • 114
  • 210
1 2
3
8 9