views:

51

answers:

1

I have a custom tool that uses svn.exe for committing files, and my project has several files to ignore on every commit (configuration files). This scenario is working well with TortoiseSVN, which moves them into a changeset with "ignore-on-commit" name. svn.exe has parameters to commit changes only from the particular changeset, but it doesn't has one to commit all files except ones in particular changeset. Any ideas how to do this? Thanks!

P.S. This is already implemented in TortoiseSVN I just didn't know how :(

+1  A: 

As you say this is a Tortiose feature and not part of the underlying svn libraries.

I think the best way to do this if you are using the svn command line is to specify the files you do want to commit. I assume you are using svn from some type of script so it should be doable. You can list the files you want to commit or generate a text file with a list of files and use the --targets command to specify the list of files.

You could if you wanted create a list of all the files except the ones in question and create an alias that will commit --targets mycommitlist.txt or something.

PilotBob
Thank you for your time, yes this is a solution I was thinking about, but actually I can't figure out quickly how to commit multiple files, what does --targets command?
Restuta
-- targets FILENAME--targets FILENAMETells Subversion to get the list of files that you wish to operate on from the filename that you provide instead of listing all the files on the command line.You can also just list the files you want to commit:svn ci filea.cs fileb.cs filec.csBut if you have hundreds of files you should use the targets param passing the name of a textfile you create on the fly with your build script.
PilotBob
Thanks for you time, I've done it this way, works great!
Restuta