预提交挂钩的svn修改文件在C#中承诺 [英] Precommit hook for svn to modify files to be committed in c#
问题描述
我想在某种方式修改(实际上在代码格式化格式化文件),他们致力于存储库之前。
我从的预提交例如(使用来宾姓名,没有密码)如何在python.But写我想知道的是如何得到被提交文件和其他命令行参数这一takes.One更多的列表我喜欢的事情就是写我自己在C#中,而不是Python或任何其他脚本预提交钩子。
I want to modify in certain way(Actually format the files in a code formatter) before they are committed to repository. I have found out from Precommit example (Use guest as name and no password) how to write in python.But what i want to know is how to get list of files to be committed and other command line arguments this one takes.One more thing i prefer is to write my own pre commit hook in C# rather than Python or any other script.
几点
我会写一个exe将格式化,但我想被提交的文件列表
如何使用SVN进行配置。
Few points I will write a exe which will format,but i want the list of files being committed How to configure this with svn.
推荐答案
预提交挂钩修改在提交的文件被认为是坏事:
Precommit hooks that modify the committed files are considered 'a bad thing':
的 http://svnbook.red-bean.com/en/1.5/svn.reposadmin.create.html#svn.reposadmin.create.hooks
这个想法值得官方SVN文档中的一个红色的大盒子,并警告说,这将影响SVN客户端如何与在恶劣的方式存储库中。
The idea merits a big red box in the official SVN documentation, and warns that this will affect how the SVN client works with the repository in bad ways.
这篇关于预提交挂钩的svn修改文件在C#中承诺的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!