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 .
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!
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 .
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.
You can use the svn switch command to change the location (using the --relocate option)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With