At work, when I am ready to commit my fil开发者_运维技巧es, sometimes I forget to add newly created files which breaks the build and everybody starts yelling at me (well, not really but it is embarrassing!). We are using tortoise SVN (although I have no problem using svn via the command prompt if that may be involved in the solution).
My question is, can I get SVN (or Tortoise SVN) to warn me that I am NOT committing some .h/.cpp files. My current workaround is to sort the list, but considering the size of repository and the sheer amount of unversioned files, I would like for SVN to point it out to me.
Try to add unversioned files to ignore list. Then everything else should be files You want to commit.
TortoiseSVN also displays unversioned files in commit window, so if ignore would not work try to create changelists: http://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-dug-changelists.html
So the only option I think is to add files while working on them (creating them). Svn add should work for you. You can use "check for modifications" window to add them. At the same time You can add them to changelist so You can acces them quickly later while commiting.
Sory, but or you or your software should know what to commit. If you have that much unversioned files only You can tell SVN what is important.
Another option that can help You is to use RegExp in ignore files names, if You can remove from commit window some of this files it should be easier for you to find important files that You want to commit.
If you commit on the base directory, Tortoise will recognize modified and new files in a list which you can then pick and choose from.
精彩评论