How to make svn.exe ignore files from a specific set of changes when committed?

I have a custom tool that uses svn.exeto commit files, and my project has several files to ignore with each commit (configuration files). This script works well with TortoiseSVN, which moves them to a change set called "ignore-on-commit". svn.exeIt has parameters for committing changes only from a specific set of changes, but it does not have one for committing all files, except those contained in a particular set of changes. Any ideas how to do this? Thank!

PS This is already implemented in TortoiseSVN. I just did not know how: (

+3
source share
1 answer

As you say, this is a Tortiose function, not part of the svn core libraries.

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

You could, if you wanted to create a list of all the files except those in question, and create an alias that would commit -targets mycommitlist.txt or something like that.

+1
source

Source: https://habr.com/ru/post/1751431/


All Articles