Solved

how split a subversion project

Posted on 2009-04-14
4
497 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 500 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

INTRODUCTION Subversion is a fantastic version management and software configuration management tool for teams and individuals to manage software applications. It offers many advantages over it's CVS ancestor such as it's built-in compatibility w…
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…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

734 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