需要帮助编写SVN代码审查工具

时间:2021-10-12 19:38:03

I am working on writing a SVN Code Review Tool for my team. We use VisualSVN Server on the server side and TortoiseSVN on the client side.

我正在为我的团队编写SVN代码审查工具。我们在服务器端使用VisualSVN Server,在客户端使用TortoiseSVN。

What I am trying to do write a Post-Commit hook that will open up a web browser that will show an MVC webpage for a user to configure a review.

我正在尝试编写一个Post-Commit钩子,它将打开一个Web浏览器,显示一个MVC网页供用户配置评论。

I've tried :

我试过了 :

start http://www.google.com

but the commit works fine but doesn't open a new browser.

但提交工作正常但不会打开新的浏览器。

2 个解决方案

#1


1  

SVN hooks are server side. Your hook is trying to launch a browser on the SVN server, not the user's machine.

SVN钩子是服务器端。你的钩子试图在SVN服务器上启动浏览器,而不是用户的机器。

#2


0  

As Randy has already mentioned: server-side hook scripts run on server side! Since you use TortoiseSVN on client-side you can try using client-side hooks.

正如Randy已经提到的:服务器端钩子脚本在服务器端运行!由于您在客户端使用TortoiseSVN,您可以尝试使用客户端钩子。

However, these hooks should be deployed on each developer's machine and the feature exists in TortoiseSVN only. In other words, those who use command-line or another SVN client won't see the browser after commit.

但是,这些挂钩应该部署在每个开发人员的计算机上,并且该功能仅存在于TortoiseSVN中。换句话说,那些使用命令行或其他SVN客户端的人在提交后将看不到浏览器。

#1


1  

SVN hooks are server side. Your hook is trying to launch a browser on the SVN server, not the user's machine.

SVN钩子是服务器端。你的钩子试图在SVN服务器上启动浏览器,而不是用户的机器。

#2


0  

As Randy has already mentioned: server-side hook scripts run on server side! Since you use TortoiseSVN on client-side you can try using client-side hooks.

正如Randy已经提到的:服务器端钩子脚本在服务器端运行!由于您在客户端使用TortoiseSVN,您可以尝试使用客户端钩子。

However, these hooks should be deployed on each developer's machine and the feature exists in TortoiseSVN only. In other words, those who use command-line or another SVN client won't see the browser after commit.

但是,这些挂钩应该部署在每个开发人员的计算机上,并且该功能仅存在于TortoiseSVN中。换句话说,那些使用命令行或其他SVN客户端的人在提交后将看不到浏览器。