Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 01-26-2012, 12:07 PM   #1
Ian John Locke II
Registered: Mar 2008
Location: /dev/null
Distribution: Slackware, Android, Slackware64
Posts: 130

Rep: Reputation: 17
Trying to split a large SVN repo into one git repo.

The SVN repo in question is just under 1GB but it still takes forever to clone it from place to place. On top of that, several of us are sick of dealing with it and it's entirely our responsibility to manage. We came to the consensus that we'd use git, and the responsibility fell to me to transition the repository (since I was the person who argued most for git).

We also agreed that we'd split the repository into about 5 new repositories. This could easily be done in a lazy way just by copying directories and files into the new repositories, running git add . and going on our merry way. I'd like to preserve the history of everything though.

From what I can tell, there should be away to split the repositories into new SVN repos and then run git-svn from there. So the first question I have is this:
1) When I run 'svnadmin dump ./directory >' svnadmin provides the error message:
"Can't open file 'directory/format': No such file or directory"
Which begs the question (having never used SVN myself and only being here for a couple weeks and thereby never having to use it) what the hell is the format file? I can't find one anywhere in the repository.
2) Is there a more intelligent way of doing this?
3) If there isn't, is this at least the correct way to resolve it once I resolve the missing 'format' file issue?

Thanks for your help and advice.

Btw, Googling around hasn't helped.
Old 01-30-2012, 08:19 AM   #2
Ian John Locke II
Registered: Mar 2008
Location: /dev/null
Distribution: Slackware, Android, Slackware64
Posts: 130

Original Poster
Rep: Reputation: 17

So combined with this and the knowledge that with one repository you can use [code]git svn clone[/clone] with sub-directories of the root svn repository (i.e. the directory structure is
, etc.) this makes splitting the one respository into several smaller ones fantastically simple. Git does all the work really though.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Can't install Git repo (I don't git git ) Nemus Linux - Software 3 05-20-2011 02:09 PM
Best way to automate copying of Git repo to subversion repo? jceipek Linux - Server 0 03-15-2011 02:42 AM
tor git repo security patch mrmnemo Linux - Newbie 5 01-17-2011 06:19 PM
generate patch between two revision from git repo harish2704 Linux - Software 2 08-06-2010 11:16 PM
How to configure git-daemon to publish my repo? CoderMan Debian 0 06-16-2009 02:18 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:10 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration