为Tortoise SVN创建必需的注释钩 [英] Creating a Required Comment Hook for Tortoise SVN

查看:167
本文介绍了为Tortoise SVN创建必需的注释钩的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有人实现了一个钩子,要求开发人员在成功提交之前输入x个字符?我已经查看了一些问题,但是并不太了解如何使用Tortoise 专门针对Windows环境来实现Subversion的Subversion.

Has anyone implemented a hook that requires developers to input x chars before successful submission? I've looked up hooks but don't really understand how to implement this one for Subversion using Tortoise specifically for a Windows Environment.

推荐答案

只需右键单击存储库的顶层.在上下文菜单中,选择TortoiseSVN,然后选择属性"以查看此对话框:

Simply right-click the top level of your Repository. In the context-menu select TortoiseSVN, then Properties, to see this dialog:

单击右下角附近的新建"按钮,然后选择日志大小".输入提交和锁定"所需的字符数(在下面的示例中为10).

Click the New button near the bottom right, and select Log Sizes. Enter the number of characters you want to require for Commit and Lock (10 in example below).

从刚修改的顶层目录中进行一次提交.现在,您的存储库要求所有用户在提交更改之前先发表评论.

Do a Commit from the top Level directory you just modified. Now your repository requires all users to Comment before Committing changes.

这篇关于为Tortoise SVN创建必需的注释钩的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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