hsz
hsz

Reputation: 152226

Current SVN project - change hostname

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 .

Upvotes: 11

Views: 4704

Answers (2)

Ivan Krechetov
Ivan Krechetov

Reputation: 19220

You can use your favorite text search/replace tool and replace "192.168.0.100." with "192.168.0.100" in all the .svn/entries files in all the directories of the project.

Upvotes: 0

Philippe Leybaert
Philippe Leybaert

Reputation: 171814

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

Upvotes: 11

Related Questions