You might want to take a look at the Change Sets feature.
In synchronization mode, the very last button - the "Replace sets" button - if you turn it on, you can assign your changes to the sets you set (right-click on the specified file, and then "Add to" - "New Change Set".
I installed a change set called local changes, and then a new change set for each defect / function I'm working on (and set this as the default change set). When it comes time to commit changes to a function or defect, I simply right-click on the corresponding change set name and press commit.
Thus, you can save local changes as long as you like, without worrying about which files you need to make and which you need to maintain (or create a patch, etc.).
Rodeoclown
source share