SVN Revert (but only *some* changes)
Sometimes I endeavor in complicate refactorings and, instead of commiting to a branch when at least a part is working, I keep editing until I lose control of the source and wished that I could go back to that previous working situation.
The solution is, luckily, not too difficult:
The solution is, luckily, not too difficult:
- save the edits to a patch
svn diff > great_mother_of_all_patches.patch - revert the project to the last commit:
svn revert -R . - apply the patch edit by edit (I know this is tedious) using the eclipse "Team Synchronizing" perspective, then click on the Synchronize button and choose the Synchronize with patch option
Disclaimer: I don't use the Eclipse subversion plugin because, on Linux at least, it frequently crashes Eclipse.