title: How to rename an SVN branch and update references in an existing sandbox?
body: <p>I needed to rename a SVN branch, so I did:</p>
  
  <pre>$ svn move https://server/repos/myrepo/branches/oldbranch \
      https://server/repos/myrepo/branches/newbranch</pre>
  
  <p>So far, so good --  the branch has been renamed.</p>
  
  <p>The trouble is, we have existing sandboxes checked out from this branch and when I try to update I get this error:</p>
  
  <pre>$ svn update
  svn: Target path '/branches/oldbranch' does not exist</pre>
  
  <p>A fairly self-explanatory error. After a quick search I thought I had found the solution: <a href="https://stackoverflow.com/q/4411003/341459">Relocating SVN working copy following branch rename</a></p>
  
  <p>The trouble is, that when I try to issue that command I get another error:</p>
  
  <pre>$ svn switch --relocate https://server/repos/myrepo/branches/oldbranch \
      https://server/repos/myrepo/branches/newbranch
  svn: Relocate can only change the repository part of an URL</pre>
  
  <p>As far as I can see, I am using the <code>--relocate</code> command the same way as Sander Rijken. Any ideas why I get this error? </p>