LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 09-05-2007, 10:32 AM   #1
stevec
LQ Newbie
 
Registered: Mar 2004
Location: Bloomington, IN
Posts: 21

Rep: Reputation: 15
Splitting an Existing Subversion Repository


I have a subversion server with several large repositories for various projects.

Currently I'm working on a subsection of one repository which is beginning to develop into a large project of its own. I would like to be able to manage it separately with Subversion and not have to commit the whole of the repository it is currently embedded in each time I make a change to this project.

Ideally I want to take this subsection out of the repository it is currently in and put it in its own repository.

Can anyone help me with this?

Thanks in advance.
 
Old 09-21-2007, 05:30 PM   #2
stevec
LQ Newbie
 
Registered: Mar 2004
Location: Bloomington, IN
Posts: 21

Original Poster
Rep: Reputation: 15
Ok, let me see if I can explain this better.

Right now I have repositories like this:
/main (rep)
/main/info
/main/info/contact
/main/info/personnel
/main/info/faq
/main/stuff
/main/morestuff
/resource1 (rep)
/resource2 (rep)
...

I want to create a folder on the same level as the main repository and repositories inside it to look like this:
/main (rep)
/main/stuff
/main/morestuff
/resource1 (rep)
/resource2 (rep)
/info
/info/contact (rep)
/info/personnel (rep)
/info/faq (rep)

So far I've come up with this:
mkdir info

svnadmin dump ./main main-dump

svndumpfilter include /info/contact < main-dump > contact-dump
svndumpfilter include /info/personnel < main-dump > personnel-dump
svndumpfilter include /info/faq < main-dump > faq-dump

svnadmin create /info/contact ; svnadmin load /info/contact < contact-dump
svnadmin create /info/personnel ; svnadmin load /info/personnel < personnel-dump
svnadmin create /info/faq ; svnadmin load /info/faq < faq-dump

My first question is will this work the way I'm hoping?
My second question is what to do about the main repository since I still want to keep data in there but I want to get rid of what's going into the new repositories? I'd imagine I'd have to use some kind of svndumpfilter include/exclude, but I'd have to do it for multiple directories. Is that possible?
Could I just rmdir -r the info/ folder in the main repository?

Also, since I've made a dozen revisions to the main/ repository specifically for changes in the info section (hence my wanting to separate them), can I use the --drop-empty-revs and --renumber-revs on svndumpfilter to fix the revision numbering? Do I need to use it every time I use svndumpfilter?

Thank you so much for the help!
 
  


Reply

Tags
repositories, subversion, svn


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
LXer: Setting Up A Subversion Repository Using Apache, With Auto Updatable Working Copy LXer Syndicated Linux News 0 06-20-2007 01:32 PM
Subversion Repository Seg Fault (32 to 64 bit) dlublink Linux - Software 1 03-31-2007 04:54 PM
Setting up a subversion server/repository filburt1 Linux - Software 1 11-03-2006 01:28 AM
Subversion shared repository under both Windows and Linux? paulsiu Linux - Software 5 07-20-2006 05:25 PM
create a cvs repository with existing files to cvs powah Linux - Software 1 08-19-2005 10:19 AM


All times are GMT -5. The time now is 11:38 PM.

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