简体   繁体   English

在SVN中提交/评论之前显示清单

[英]Displaying a checklist before commit/comments in SVN

Currently we use TortoiseSVN and VisualSVN as our source control. 当前,我们使用TortoiseSVN和VisualSVN作为源代码控件。 I have altered the pre-commit hook successfully to block unwanted files etc being committed to the repository. 我已成功更改了预提交钩子,以阻止不需要的文件等被提交到存储库。 But what I want to achieve now is a check-list that will act as aide memoir before committing. 但是,我现在要实现的是一份清单,该清单将在提交之前用作辅助回忆录。

Is this possible? 这可能吗? If so what is required to be done I can't see how it will work with the pre-commit hook as I would want the check-list displayed when they hit commit on the context menu to bring up all the changed files and the log message? 如果是这样,则需要执行的操作我看不到它如何与预提交挂钩一起使用,因为我希望在上下文菜单中单击“提交”时显示清单,以调出所有更改的文件和日志。信息?

Yip TortoiseSVN Client hooks were the way to go Yip TortoiseSVN客户端挂钩是必经之路

I grabbed the StartCommit.js file from the SVN repository and then tailored it to output what I wanted. 我从SVN存储库中获取了StartCommit.js文件,然后对其进行了定制以输出所需的内容。

Then I simply created a hook calling WScript \\StartCommit.js 然后,我简单地创建了一个调用WScript \\ StartCommit.js的钩子

Have you seen this pre-commit hook example ? 您是否看到过此预提交的钩子示例 Some variant of it was used in a shop I used to work at and prevented a lot of common mistakes. 它的某些变体在我以前工作的一家商店中使用,并防止了许多常见错误。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM