I made some changes in my code and after that I decided the code is not good for trunk, but I should rather experiment a bit (with code) and later if I succeed I should go with trunk.
So I needed to create a branch -- I created new directory in branches, I copied svn copy
the trunk to the newly created branch, and then I went to my source code directory and executed svn switch
.
And at this point I don't understand what happened. svn traversed entire directory in similar fashion when I apply svn status
, putting for most file A
letter but for directories C
, in summary I could read:
Updated to revision 1458.
Summary of conflicts:
Tree conflicts: 6
But when I checked some files I saw the files are (luckily) not updated really from svn repository (once again, after last commit I made changes to code and then decided to branch).
When I issue svn status
now I can see for many entries info like for this directory:
A + C testsuite
> local edit, incoming delete upon switch
The steps I made I read on SO, and there was not mentioned such problems. So how can I commit my changes to branch now (of course I don't want to delete my changes).
Update: I found partial answer on SO, you can execute:
svn resolve --accept working ./*
to claim the local version files as OK. See: https://stackoverflow.com/a/2207119/210342
But it is not over, now I has this error:
svn: Did not expect '/media/wdisk/Projekty/MyProject
/MyProject.UnitTests/MetaData' to be a working copy root
Update 2: I didn't solve this as I would like. Instead I copied entire directory (local one), removed all .snv
directories, I checked out the files from the branch, copied all local files over, and then I committed. This was seen by SVN as regular change, so it didn't trigger conflicts.