"SVN" SVN set log submission restrictions and log template settings (under Windows)

Source: Internet
Author: User
Tags ticket tortoisesvn

1. SVN set the log submission limit

VISUALSVN Server installed in the server, and when the Repositoreis is added, each Repositoreis (that is, a new project) there will be a hooks (hook program) in the hooks directory there are some Tmpl files, as a different hooks operation

Create a new Pre-commit.bat file with the following file contents:

@echo offsetlocalset svn_bindir=c:/program files/visualsvn server/bin/set repos=%1set TXN=%2rem Check that LogMessage Contains at least Characterssvnlook log "%repos%"-T "%txn%" | Findstr "..." > Nulendlocalif%errorlevel% gtr 0 goto errexit 0:errecho please fill in log!!! The log format is as follows: 1>&2  echo "Submission type": bug/new features/requirements modification/version creation/code collation/Resolution compilation however/periodic submission/Additional submission 1>&2 echo "Problem description": Description of the order, Copy from Devtrack or description of this modification 1>&2echo "program description": None (reason analysis or technical description of the modification) 1>&2echo "Modified content": 1>&2echo 1. Modified content 1 1>&2echo 2. Modified content 1 1>&2echo "related ticket": no 1>&2echo "need to test": Yes/no 1>&2exit 1


2. Log template settings

The eclipse settings are as follows:


2. Through TORTOISESVN settings, the steps are as follows (RPM):

1). In the folder where SVN is the project (all on the network, local only for yourself), right-click TortoiseSVN, select Properties


2). In the popup screen, select New ... (New ...) and select other
3). In the Popup interface, the property name item selects Tsvn:logtemplate and then fills in the template in the property value
"Submission Type": bug/new features/requirements modification/version production/code collation/Resolution compilation however/periodic submission/additional submission
"Problem description": The description of the order, copied from the Devtrack or from functional to the description of this modification
"Program description": None (reason analysis or technical description of the modification)
"Modify Content":
1. Modified Content 1
2. Modified Content 2
"Related ticket": none
"Test Required": Yes/No
4). Ok





"SVN" SVN set log submission restrictions and log template settings (under Windows)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.