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
2008-09-08 21:32:36
A:
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
2008-09-08 21:51:11
+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
2008-09-08 21:54:06
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
2008-09-08 21:55:53
+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
2008-09-08 22:16:26
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
2008-09-08 22:27:07