如何创建 SVN 提交消息模板和挂钩以进行验证 [英] How do I create a SVN Commit Message Template and Hook to Verify

查看:69
本文介绍了如何创建 SVN 提交消息模板和挂钩以进行验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 Visual SVN Server 和 Tortoise SVN(客户端)进行源代码控制.我希望所有开发人员都对签到记录采用统一的格式.

I'm using Visual SVN Server and Tortoise SVN (client) for source control. I would like all developers to standardize on a consistent format for checkin notes.

例如,我希望他们的提交消息默认为...

For Example I want their Commit Message to default to...

简介:

开发者名称:(预填充)

审核人:

[错误 ID]:

[更改错误状态]:

已知问题:

受影响的文件:(预填充)

将来我希望 [Bug Id] 和 [Bug State] 提供信息以触发对错误跟踪系统的自动更新.还应使用 svn 用户和用户提交的文件预先填充开发人员名称和受影响的文件.

In the future I'd like [Bug Id] and [Bug State] to supply the information to trigger an automated update to the Bug Tracking system. Also Developer Name and Affected Files should be prepopulated with the svn user and files that the user is commiting.

请发送您可能拥有的任何链接或样本.

Please send any links or samples you may have.

推荐答案

摘自 如何创建 Tortoise SVN Checkin 模板(修改以适应更多当前版本):

Taken from How to create a Tortoise SVN Checkin Template (modified to fit to more current versions):

日志模板可根据项目需求定制,可用于实现严格的日志格式.

The log template can be customized as per the project requirements and can be used to implement strict log format.

将此添加到您的 svn 存储库很容易:

Adding this to your svn repository is easy :

  1. 选择一个要应用到的 SVN 文件夹转到 Subversion 属性(右键单击 TortoiseSVN -> Properties)

选择 New ->高级,然后从名为Property name 的下拉列表中选择tsvn:logtemplate.

Select New -> Advanced, then tsvn:logtemplate from the drop down list named Property name.

将上述模板(或您自己的)添加到组合框下方的文本区域.

Add the above templates(or your own) to text area below combo box.

如果要将属性应用于当前文件夹下层次结构中的每个文件和文件夹,请选中递归"复选框.

If you want to apply the property to every file and folder in the hierarchy below the current folder, check the Recursive checkbox.

点击OK将该属性添加到列表中.

Click on OK to add that property to the list.

签入所有文件夹和文件,以便团队中的其他人可以使用相同的模板.

Check-in all the folders and files so that everyone else in your team can use the same template.

这篇关于如何创建 SVN 提交消息模板和挂钩以进行验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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