?
Solved

how split a subversion project

Posted on 2009-04-14
4
Medium Priority
?
505 Views
Last Modified: 2013-11-25
I want split my current subversion project into two. I want to know the easiest way to split the project without loosing any history information.
0
Comment
Question by:ddas_auth
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 3

Expert Comment

by:sreindl04
ID: 24192023
assume you have the following tree

/
/projecta
/projecta/A
/projecta/B <-- should be moved to project B

svn move /projecta/B /projectb

The history on the file level will be kept intact for each file/directory

0
 
LVL 1

Expert Comment

by:Airspray
ID: 24197209
I'd suggest you to dump your current project, create a new one, load it there and then remove unneeded files from both. This way both will have full history and you can even recover deleted files on both.

Let's call your reposity MyProject which is located in /svn/repos/MyProject

1. cd /svn/repos
2. svn dump MyProject > myproject.svn_dump
3. svnadmin create MyNewProject
4. svn load MyNewProject < myproject.svn_dump

Now you can checkout MyNewProject, remove files you don't want be in this half and commit. Then do the same with MyProject. If you fail, you'll have your reposity dumped in myproject.svn_dump.

To be extra safe you might want to create two new reposities.
0
 
LVL 1

Expert Comment

by:Airspray
ID: 24197220
I'd suggest you to dump your current project, create a new one, load it there and then remove unneeded files from both. This way both will have full history and you can even recover deleted files on both.

Let's call your reposity MyProject which is located in /svn/repos/MyProject

1. cd /svn/repos
2. svn dump MyProject > myproject.svn_dump
3. svnadmin create MyNewProject
4. svn load MyNewProject < myproject.svn_dump

Now you can checkout MyNewProject, remove files you don't want be in this half and commit. Then do the same with MyProject. If you fail, you'll have your reposity dumped in myproject.svn_dump.

To be extra safe you might want to create two new reposities.
0
 
LVL 1

Accepted Solution

by:
Airspray earned 2000 total points
ID: 24197311
Oh, my comment needs to fixed. Commands should ofcourse be:

1. cd /svn/repos
2. svnadmin dump MyProject > myproject.svn_dump
3. svnadmin create MyNewProject
4. svnadmin load MyNewProject < myproject.svn_dump
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When working in a large software development team, whether you have many developers working on the same projects, or your project is linked to other projects; it is very important that developers regularly perform "get latest" to ensure that the cha…
Article by: gr8gonzo
Git can be a complicated version control system for beginners, but it definitely is one of the best ones out there. Since this article assumes that you're starting at square one, it will skip over things that Git -can- do and will focus on the typic…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question