I have a file which I modified and I don't want these changes to be committed. How do I get TortoiseSVN ignore this file during commits? However if I make changes after that point, I want the file not to be ignored anymore.
+5
A:
You prevent the changes from being committed by deselecting the checkbox for that file in the TortoiseSVN commit dialog.
RedFilter
2010-09-03 16:23:54
Yup, best way there is.
Pekka
2010-09-03 16:25:01
Was looking for another way than doing this every time. Basically do not show up in that list and force svn to think it has NOT been modified
Tony_Henrich
2010-09-03 20:37:32
@Tony_Henrich I think you'll need to write a script or program for this. Your requirement sounds fairly exotic. Care to elaborate what you need this for? Maybe somebody has a workaround idea.
Pekka
2010-09-03 20:55:11
A:
You can add the file to the special changelist ignore-on-commit. Once you have done that you no longer have to deselect the file every time you open the commit dialog.
Once you really want to commit the changes made to that file, you can simply select (check) it in the commit dialog and it will be committed.
Details about this feature are described here.
M4N
2010-09-03 20:47:42
This is a nice idea, will +1 tomorrow when I have votes. However, it doesn't automate the OP's second requirement - getting into SVN's scope again if changes have been made after committing. That sounds pretty much impossible to achieve without custom programming / scripting.
Pekka
2010-09-03 20:54:35
If you want to commit the file later again, just either remove it from the ignore-on-commit changelist, or manually check it for commit.
Stefan
2010-09-04 06:31:54