changing to a different SVN repository for a project in XCode 4

I have a project which I regularly commit to an SVN repository named "repo1", for some reason, I needed to change the project's repository location to "repo2" so any future commits/updates will take place to "repo2". Is that possible in XCode 4? if yes, how ?

p.s. I have SVN server on the local network which has two repos: repo1 & repo2 .

Answers


In your case I would use svanadmin to export/import

export:

svnadmin dump --quiet --revision 0:xxx /home/svn/repo1 > /tmp/repo1.dump

import:

svnadmin load --quiet /home/svn/repo2 < /tmp/repo1.dump

OR use move

svn move https://svn.example.com/repo1/ https://svn.example.com/repo2/

I don't think you can do it with Xcode, but you can use the svn command to relocate the repository URL in your working copy:

svn switch --relocate <from URL> <to URL>

NOTE: always make a backup of your working copy before... ; )

About relocate:

Rewrite working copy URL metadata to reflect a syntactic change only. This is used when repository's root URL changes (such as a scheme or hostname change) but your working copy still reflects the same directory within the same repository.


Need Your Help

Modelform - validation on form field

django forms django-forms

Excuse my newbieness with django, but I am trying to properly validate a formfield named: domainNm

save as dialog box in Firefox

javascript html dojo

I want to show the Save as dialog box when a user clicks an HTML button.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.