Solved

how split a subversion project

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

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

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…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…

705 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