views:

864

answers:

4

Is there a way to have TortoiseSVN (or any other tool) auto-add any new .cs files I create within a directory to my working copy so I don't have to remember which files I created at the end of the day?

+5  A: 

If you just commit your working copy, you'll get a file list showing you your unversioned files, which you can tick to add as you commit. You don't have to add them explicitly before you commit.

Blorgbeard
A: 

@Blorgbeard

That's a good idea, though I would still like a way to set a filter to automatically add files like you can set it to automatically ignore files.

George Mauer
+1  A: 

Yes, you can add a bat file to svn (on the installed server) so that anytime you update a particular branch, that change get mimicked.. I believe its called hooks...

I hope this is what you meant.

Mike Fielden
That doesn't solve his problem because, if he hasn't added his new files, the server is oblivious to the existence of those files.
Landon
+1  A: 

I would probably make a batch file, something like this (untested):

dir /b /S *.cs > allcsfiles.txt
svn add --targets allcsfiles.txt

I believe svn won't mind you trying to add files which are already versioned..

Anyway, that's probably about as automatic as you will easily get.

Blorgbeard
If you are already using TortoiseSVN, you can use TortoiseProc (commando line tool) instead of svn.http://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-automation.html
morais