[SVN] SVN setting log submission restrictions and log template settings (in windows)

Source: Internet
Author: User
Tags tortoisesvn

[SVN] SVN setting log submission restrictions and log template settings (in windows)

1. SVN sets log submission restrictions

When you add RepositoreisThere will be a hooks (Hook program) under the Repositoreis (that is, the new project) and some tmpl files under the hooks directory, as different hooks operations

Create a new pre-commit.bat file with the following content:

 

@ Echo offsetlocalset SVN_BINDIR = C: /Program Files/VisualSVN Server/bin/set REPOS = % 1 set TXN = % 2rem check that logmessage contains at least 20 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 function/requirement modification/version preparation/code Sorting/Resolution compilation failed/staged submission/append submission 1> & 2 echo [Problem description]: Description of the ticket, copy From devtrack or describe the modification from function 1> & 2 echo [program description]: none (Cause Analysis or technical description of the modification) 1> & 2 echo [modify content]: 1> & 2 echo 1. modified content 1> & 2 echo 2. modified content 1> & 2 echo [related Ticket No.]: None 1> & 2 echo [test required]: yes/no 1> & 2 exit 1

 

 

2. Log template settings

Eclipse settings are as follows:

 

2. PassTo configure TortoiseSVN, follow these steps ):

1). Right-click the folder in which SVN is located, that is, the project (on the network, local only for itself), right-click TortoiseSVN, and select Properties)


2). In the pop-up interface, select new... (new...), and then select Other
3). In the pop-up interface, select tsvn: logtemplate for the Property name item, and then fill in the template in the Property Value.
[Submission type]: BUG/new function/requirement modification/version preparation/code Sorting/Resolution compilation failure/phased submission/append submission
[Problem description]: The description of the ticket. It is copied from devtrack or the description of this modification from the function.
[Program description]: none (Cause Analysis or technical description of the modification)
[Modification content ]:
1. Modified content 1
2. Modified content 2
[Related Ticket No.]: None
[Test Required]: Yes/No
4). OK.


 

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.