Solved

how split a subversion project

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

821 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