I've been working on code checked out from the development line and discovered that the changes made might be breaking changes and need to be moved to an experimental branch before committing to the main dev tree. However, I don't have the experimental branch checked out and I don't want to lose the changes that have already been made.
Is there a way to commit the changes in the working folder to a different branch than originally checked out?
You can create a new branch directly from your working directory and switch the working directory to that branch.
The commands are
svn copy
andsvn switch
You should create a branch from a known
sourceURL
(this would be your 'development line' you mentioned in the question) first:Then, switch to that branch:
And commit your changes:
You could do it in the TortoiseSVN like that:
Enjoy!