I currently have a Working Copy with two branches in it:
/Source
/Source/v1.2
/Source/v1.3
I want to delete this and instead only check out the branch I need (i.e. go one level down the directory tree and only check out /Source/v1.3). However the working copy of v1.3 contains a bunch of ignored files that I actually want to keep. So I don’t want to just delete the whole working copy and start over. And of course I don’t want to manually try to locate all of the ignored files and preserve them. Is there any sort of command to do this?
I’m on Windows using TortoiseSVN as well as Slik SVN for automated builds.
Each sub-directory tree in Subversion is its own working directory. It contains everything you need in order to use it as a working directory. This includes the directories and files that are being ignored, revision history, etc.
There is no reason why you can’t simply use the sub-directory you want as your new working directory and delete the rest. In fact, you can even rename the top sub-directory tree once you get it out of the way. In this example, you’re moving the v1.3 directory to the C:\ drive and renaming it \Source-v1.3. Then, deleting the rest:
This will keep all of the files and directories you’ve ignored, ignored.