[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.