Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why is git svn fetch so slow?

Tags:

git

svn

git-svn

I'm trying to git svn fetch my repo to perform a git rebase -i I'm performing the fetch locally why is it so slow? Should it really take so much time to create 1000 revisions? It seems like the process just "falls a sleep" on a file then suddenly there is a flurry of activity.

like image 333
Doug Chamberlain Avatar asked Oct 24 '11 16:10

Doug Chamberlain


People also ask

What does Git SVN fetch do?

This retrieves all the changes from the SVN repository and applies them on top of your local commits in your current branch. This works like, you know, a rebase between two branches :) You can also use git svn fetch to retrieve the changes from the SVN repository but without applying them to your local branch.

How long does Git SVN clone take?

Beware that the conversion process can take a significant amount of time for larger repositories, even when cloning from a local SVN repository. As a benchmark, converting a 400MB repository with 33,000 commits on main took around 12 hours to complete.

Is SVN better than Git?

SVN is better than Git for architecture performance, binary files, and usability. And it may be better for access control and auditability, based on your needs.

Can I use Git for SVN repository?

Use git-svn, it is really simple. First clone your repository with git svn clone then you can git svn dcommit your work or git svn rebase it on the latest changes. Make sure your history is always linear by always rebasing your local branches on master so that you can merge them with git merge --ff-only .


1 Answers

This seems to be a problem of the windows port of 'git svn'. Or more specifically one of the perl libraries of 'git svn' on windows/cygwin.

cloning a 12MB 75 revision svn repo

  linux: 45 seconds
  windows (cygwin): 25 minutes
like image 98
harmv Avatar answered Oct 04 '22 20:10

harmv