Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Current SVN project - change hostname

Tags:

eclipse

svn

My mate created a project from SVN with bad hostname - 192.168.0.100. - yes, with a dot at the end. :)

Eclipse created this project, downloaded files, etc but there is problem with commits.

Is it possible to change SVN hostname in this current existing project from 192.168.0.100. to 192.168.0.100 without creating a new one (from shell or something) ?

Solution:

svn --relocate switch http://192.168.0.100./project http://192.168.0.100/project .
like image 289
hsz Avatar asked Dec 30 '09 14:12

hsz


People also ask

How do I rename a project in svn?

To rename a repository, just rename the directory where your repo relies: eg if your repo lies in /opt/svn/my_old_name just apply: mv /opt/svn/my_old_name /opt/svn/new_name No need for dump/reload!

How to relocate svn repository?

Just open the database (e.g. in SQLite Browser), browse table REPOSITORY, and change the root and uuid column values to the new ones. You can find the UUID of the new repo by issuing svn info NEW_SERVER .

What is relocate in svn?

The first svn relocate syntax allows you to update one or more working copies by what essentially amounts to a find-and-replace within the repository root URLs recorded in those working copies. Subversion will replace the initial substring FROM-PREFIX with the string TO-PREFIX in those URLs.


1 Answers

You can use the svn switch command to change the location (using the --relocate option)

like image 195
Philippe Leybaert Avatar answered Oct 20 '22 21:10

Philippe Leybaert