views:

75

answers:

2

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 loose 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?

+4  A: 

You can create a new branch directly from your working directory and switch the working directory to that branch.

The commands are svn copy and svn switch

Dima
+7  A: 

You should create a branch from a known sourceURL (this would be your 'development line' you mentioned in the question) first:

svn copy sourceURL branchURL

Then, switch to that branch:

svn switch branchURL

And commit your changes:

svn commit
ryanprayogo