在 SVN 中提交/评论之前显示清单
目前我们使用 TortoiseSVN 和 VisualSVN 作为我们的源代码控制。 我已成功更改预提交挂钩,以阻止将不需要的文件等提交到存储库。 但我现在想要实现的是一个清单,它将在提交之前充当辅助回忆录。
这可能吗? 如果是这样,需要做什么,我看不到它将如何与预提交挂钩一起使用,因为我希望在单击上下文菜单上的提交时显示检查列表以显示所有更改的文件和日志信息?
Currently we use TortoiseSVN and VisualSVN as our source control. 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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
方法
Yip TortoiseSVN 客户端挂钩是我从 SVN 存储库中获取 StartCommit.js 文件,然后对其进行定制以输出我想要的内容的
。 然后我简单地创建了一个调用 WScript \StartCommit.js 的钩子
Yip TortoiseSVN Client hooks were the way to go
I grabbed the StartCommit.js file from the SVN repository and then tailored it to output what I wanted.
Then I simply created a hook calling 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.