Cambiare l'url SVN di una Working Copy

From RVM Wiki
Revision as of 16:30, 14 November 2009 by Gabriele.vivinetto (talk | contribs) (New page: Se cambia l'url di una working copy, viene cambiato il nome del server, o la directory, bisogna fare un relocate: My best way to do an SVN relocation is this: svn switch --relocate $(sv...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Se cambia l'url di una working copy, viene cambiato il nome del server, o la directory, bisogna fare un relocate:

My best way to do an SVN relocation is this:

svn switch --relocate $(svn info | grep ^URL | cut -f 2 --delim=' ') \
                      new_url_or_repository

In this way, using the right old url from the svn info command, you are sure to not enter a wrong one, which is one of the common erros.

If everything is correct, you will be prompted with the auth details for the new location, if they are different.

After issuing the command, be sure to double check that the change has been applied looking at the URL parameter, issuing

svn info

After relocating, update your working copy, to check that everything is ok:

svn update

Riferimenti