Changing subversion (svn) url

To change the svn url to another one:

$ svn switch –relocate file:///tmp/repos file:///tmp/newlocation .
or if it is with ssh
$ svn switch –relocate svn+ssh://username@svnurl/path/to/svn/ svn+ssh://new_username@new_svnurl/path/to/svn/