Forced write log problem under SVN submission on Linux __linux

Source: Internet
Author: User

Found on the Internet is the practice, but I follow this step after the change does not work, do not write comments or still can be submitted:
Enter the warehouse Project/hooks directory, locate the Pre-commit.tmpl file, and rename it to Pre-commit.
Edit Pre-commit File:
Will:
$SVNLOOK log-t "$TXN" "$REPOS" | \
grep "[a-za-z0-9]" >/dev/null | | Exit 1
commit-access-control.pl "$REPOS" "$TXN" commit-access-control.cfg | | Exit 1
These three lines are commented out (preceded by the # symbol),
Add the following lines to this location:
logmsg= ' $SVNLOOK log-t "$TXN" "$REPOS" | grep "[A-za-z0-9]" | Wc-c '
If ["$LOGMSG"-lt 5]; #要求注释不能少于5个字符, you can customize
Then
ECHO-E "\nlog message Cann" t be empty! You are must input more than 5 chars as comment!. " 1>&2
Exit 1
Fi
Save, exit.
To add executable permissions to Pre-commit:
chmod +x Pre-commit

Original: HTTP://GLITTERLIFE.INFO/NODE/16

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.