开发者

Does TortoiseSVN commit has an option of opening exe?

I've set up BugId property to my files in the repository. This means that on the commit window, I have a field which the developers type the issue number of the bug and it's shown in the log message of the commit.

I wanted to know if there a possibility that once I click on the commit but开发者_如何学Cton, before the commit itself, an exe file will be executed.

I'm not referring to the pre-commit hook, as it runs after I click on the commit button.

Thanks.


If you want this file to run on your client check the TortoiseSVN help 4.30.8. Client Side Hook Scripts.

There is a Start-commit hook for TortoiseSVN that runs just before the commit dialog is shown.

I have just tried this and it works just fine.

alt text http://img710.imageshack.us/img710/760/hook.png

File test.bat contains only exit 0 command and I can clearly see the console window opening and closing before the commit dialog is shown.


In TortoiseSVN 1.5 and up, you can define Client-Side Hook Scripts. Read about them in the excellent TortoiseSVN help system. In particular, for your purposes, look at the Start-Commit and Pre-Commit hooks.


You should consider implementing an IBugtraqProvider. That interface was specifically designed for this purpose.

You might want to use the CheckCommit() method.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜