开发者

How to force svn.exe to ignore files from specific changeset when committing?

I have a custom tool that uses svn.exe for committing files, and my project has several files t开发者_开发技巧o 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 :(


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜