Set SVN commit log required

Source: Internet
Author: User

1. Open VisualSVN Server
2. Open repositories
3. Right-click on all tasks required to control->manage hooks ...
4. Select Hooks tab and click Pre-commit Hook to enter the edit screen.
5. Copy the following contents into the input box

@echo off:::: Stops commits that has empty log messages. :: @echo off setlocal rem Subversion sends through the path to the repository and transaction IDSetrepos=%1  Settxn=%2rem Check forAn empty log message Svnlook log%repos%-T%txn% | Findstr"..........">nulif%errorlevel% GTR0(GotoErrElseExit0: Err Echo.1>&2echo Sorry, because you did not fill in the log or log too few words (must be greater than 10), the system refused to submit! 1>&2echo Log format: New/Modify/Delete: Submit content1>&2Echo Please describe the submission in detail before submitting it.--Thank you!1>&2Exit1

Set SVN commit log required

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.