且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何创建 SVN 提交消息模板和挂钩以进行验证

更新时间:2022-12-07 09:57:02

摘自 如何创建 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.