AnkhSVN客户端预提交挂钩 [英] AnkhSVN client side pre-commit hook

查看:75
本文介绍了AnkhSVN客户端预提交挂钩的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

基本上,我想通过那里

似乎每个人都在考虑服务器端挂钩(包括它们的所有

It seems that everybody was thinking about server-side hooks (with all their evil potential).

我希望在提交之前运行客户端脚本,以便astyle可以按老板喜欢的方式格式化代码。

I want a client side script be run before commit so astyle can format the code the way my boss likes to see it.

由于我的IDE(VS2010Pro)自动检查磁盘上的文件更改时间并选择让我重新加载文件,因此所有这些都没有真正的弊端。

Since my IDE (VS2010Pro) automatically checks when a file changed on the disk an opts me in for reloading it, there is no real evil with all that.

是否可以使用AnkhSVN来完成此操作?

Is there any (clean) way to accomplish that with AnkhSVN?

也许还有一种方法可以扩展VisualStudio来调用我的pre-commit-script ...

Maybe there's also a way to extend VisualStudio to call my pre-commit-script...

推荐答案

似乎正在使AnkhSVN使用TortoiseSVN的钩子脚本,因为其中有有关它在夜间构建中的对话。同样,每日更新似乎也提到了钩子(例如版本10870 修订10873

It seems like AnkhSVN is being made to use TortoiseSVN's hook scripts, as there is a conversation about it being in the nightly builds. Also the daily updates seem to mention hooks (e.g revision 10870 and revision 10873.

尝试获取每日构建,并在 Tools-> Options-> Source Control->中查看subversion选项; Subversion Environment 在Visual Studio中。如果这样不起作用,请尝试打开W​​indows注册表到 HKEY_CURRENT_USER\Software\Ankh‐SVN\VisualStudio\< Version>。 \配置(其中< Version> 应该是10.0)并添加名为 EnableTortoiseSvnHooks ,数据为 True ,如上面的对话链接所述。

Try getting a daily build and seeing the subversion options in Tools->Options->Source Control->Subversion Environment in Visual Studio. If that doesn't work try opening Windows registry to HKEY_CURRENT_USER\Software\Ankh​SVN\VisualStudio\​<Version>\Conf​iguration (where <Version> should be 10.0 for you) and adding a string named EnableTortoiseSvnHooks with the data True, as mentioned in the above conversation link.

这篇关于AnkhSVN客户端预提交挂钩的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆