Solved

how split a subversion project

Posted on 2009-04-14
4
493 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
  • 3
4 Comments
 
LVL 3

Expert Comment

by:sreindl04
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

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…
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…
This video discusses moving either the default database or any database to a new volume.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

763 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

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now