Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SVN Relocate or Switch?

Tags:

I've reinstalled my SVN server and the path has changed from svn://192.168.1.35/DDL2/trunk/DD_... to svn://192.168.1.35/trunk/DD_... . I've made several changes on the working copy and wants to commit it on server so I need to change the path/url without affecting the working copy.

I've tried to use TortoiseSVN's Relocate feature but got "Relocate can only change the repository part of an URL", maybe I should use Switch but I'm worried about the working copy revision.


svn info svn://192.168.1.35/

Path: 192.168.1.35 URL: svn://192.168.1.35 Repository Root: svn://192.168.1.35 Repository UUID: 259834e4-a888-4201-9858-aaacfe621d8e Revision: 58 Node Kind: directory Last Changed Author: rize Last Changed Rev: 58 Last Changed Date: 2009-11-02 18:33:09 +0100 (po, 02 11 2009) 

svn info D:\Programy\Eclipse Workspace\LDD_L2DP

Path: D:\Programy\Eclipse Workspace\LDD_L2DP URL: svn://192.168.1.35/DDL2/trunk/DD_L2DP Repository Root: svn://192.168.1.35 Repository UUID: 259834e4-a888-4201-9858-aaacfe621d8e Revision: 21 Node Kind: directory Schedule: normal Last Changed Author: rize Last Changed Rev: 17 Last Changed Date: 2009-10-21 19:22:41 +0200 (st, 21 10 2009) 

Old structure:

svn://192.168.1.35/DDL2 svn://192.168.1.35/DDL2/trunk/DD_L2DP 

New structure

svn://192.168.1.35/ svn://192.168.1.35/trunk/DD_L2DP 
like image 920
RiZe Avatar asked Nov 29 '09 20:11

RiZe


People also ask

What does svn relocate do?

The --relocate option causes svn switch to do something different: it updates your working copy to point to the same repository directory, only at a different URL (typically because an administrator has moved the repository to another server, or to another URL on the same server).

What is TortoiseSVN relocate?

The relocate command is only used if the URL of the repository root has changed. Possible reasons are: The IP address of the server has changed. The protocol has changed (e.g. http:// to https://). The repository root path in the server setup has changed.

How do I change my TortoiseSVN URL?

If you use TortoiseSVN, see this article for instructions. In case you need to change the url for your Git repository, you can do this by going to the root of your working copy, then you need to go to . git folder (please note that this folder is hidden), and modify remotes in your config file.


1 Answers

This question has the answer. Specifically:

svn switch --relocate http://svn.example.com/path/to/repository/path/within/repository http://svnnew.example.com/new/repository/path/within/repository 
like image 134
John Paulett Avatar answered Sep 17 '22 16:09

John Paulett