Commit the partial file (patch) for SVN

Possible duplicate:
partial fixation with subversion

Is there any way to commit only some changes to the SVN file? Let's say I'm working on two new features (or bug fixes), and both of them affect the same file. I am finishing 1 function and I want to commit only one of the changes. I understand that I can create a separate branch for each function, but this complicates the other ways by constantly switching between several branches of functions that I can work on simultaneously.

Currently, when I need to do this, I make a copy of the file, delete the changes that I do not want to comment on, and then do it. Then I take a copy and go back to what I just did, leaving only those changes that I did not want to make. This is quite a lot of everything that needs to be done to possibly complete, perhaps 1 line for a small error correction.

I know that someone can say you should not do this, because the whole point of creating the whole file is that you know exactly what you are doing and that it will not break the code. But since you can commit individual files, this case is not much different, because you can still forget to transfer other files associated with the files that you are changing, and still cause code violation. Or similarly, we forget to add the files that the new function depends on.

+7
source share
1 answer

Subversion does not have such a function, and I do not think that it is planned to implement it in the near future. If this is an option, you can try other source management tools that have it:

+2
source

All Articles