SVN switch vs relocate in a multiple project repository case


We have a very complex SVN tree at my employer that has several project trees contained within the same repository, as follows (each leaf in this diagram has a complete trunk/branches/tags structure in it, btw)

svn.contoso.com/root_repository_path/ |- project1 |- project2 | |- subprojectA | |- subprojectB |- project3 |- project4 |- |- subprojectA |- |- subprojectB |- project5 (the project I'm on)

This works fine so far. However, a fellow developer did a bit of reorganizing, and moved project5 (the project I am working on) up under project4 (which is a folder containing several related projects). How do I migrate my working copies to use the new path? Do I need to relocate, switch, both, or do something else? (Note that I have uncommitted changes in at least one of them, so checking out a fresh WC is something I want to avoid if at all possible.)


First, I'd make a manual copy of your working copy before doing anything just to make sure that you don't lose the changes in your working copy.

Since the project was moved within the same repository, you'd want to use svn switch.

Use svn switch when updating your working copy to another URL in the <strong>same repository</strong> (i.e. switching to another branch).

<a href="http://svnbook.red-bean.com/en/1.7/svn.ref.svn.c.switch.html" rel="nofollow">http://svnbook.red-bean.com/en/1.7/svn.ref.svn.c.switch.html</a>

Use svn relocate when updating your working copy to another URL in a <strong>different repository</strong>.

<a href="http://svnbook.red-bean.com/en/1.7/svn.ref.svn.c.relocate.html" rel="nofollow">http://svnbook.red-bean.com/en/1.7/svn.ref.svn.c.relocate.html</a>


  • Inconsistent behaviour of bdist vs sdist when distributing a Python package
  • Copy entire directory before creating an ear file
  • trying to get MySQL data into nested json file for d3?
  • How to update TortoiseSVN over the network?
  • app engine(eclipse): can't register device from android emulator to endpoint
  • Write Multiple CSV files in a loop
  • Get type of items in ObservableCollection
  • SVN switch vs relocate in a multiple project repository case
  • Batch export indesign file to pdf with custom footer for each client
  • how to import a picture in the same directory
  • REACT NATIVE - Change state of screen when close import modal
  • AWS PHP SDK Credentials error S
  • How to give a different OutputPath per project per build configuration with MSBuild?
  • Mongodb: Group by element and show the sub-document count based on condition and sort the document b
  • How to query every n-th value from an ordered set of entities?
  • find words in a hashset or treeset?
  • Office AddIn button's icon won't show up
  • ServerXmlHttpRequest hanging sometimes when doing a POST
  • selectAll not selecting any nodes on D3
  • Getting Group Claims With ADFS 4.0 OAuth2 Token
  • MSBuild: Evaluating reserved properties with ReadLinesFromFile
  • IUnknown pointer reference
  • How to get all projects on a dashboard in multiple columns?
  • Django Celery Scheduling a manage.py command
  • Using a WebClient to save an image with the appropriate extension
  • Wamp server and php files [closed]
  • How to set multiple settings.py for sites framework django?
  • HibernateException: Unable to resolve entity name from Class [java.lang.Boolean] expected instance/s
  • Why does EF add tons of unused OUTER APPLY clauses when I put OrderBy at the beginning of my query
  • gulp command not recognized in Jenkins
  • Changing a String of Text and Numbers into Just Numbers
  • How to reuse eclipse launch file in a new project
  • How to compare source in Git repository between source in SVN repository
  • How to update the UI immediately when a new record is added? Related to ember-cli-pagination
  • How to use Eclipse Mars to connect to Subversion
  • How to debug Shell command after customization
  • Installing Hadoop, Java Exception about illegal characters at index 7?