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)