About SVN hooks interception settings

Source: Internet
Author: User

This way, the company SVN needs to set up interception requests

1 settings must be commented at least 5 characters to submit

logmsg= ' $SVNLOOK log-t "$TXN" $REPOS "| grep "[A-za-z0-9]" | Wc-c ' If ["$LOGMSG"-lt 5];then echo-e "Big Brother you have to write some notes, or you can't submit." 1>&2 exit 1fi# All checks passed, so allow the Commit.exit 0

2 The suffix cannot have a keyword when committing code

Classpath|project|settings|idea|iml|class
# file Filter:we only allow commit. C &&. h files. Filter= ' \. (classpath|project|settings|idea|iml|class) $ ' files=$ ($SVNLOOK changed-t $TXN $REPOS | awk ' {print $} ') # Checkfor F in $f ILESDO # Check file type if echo $f | Grep-eq $FILTER; Then # valid file echo "file $f are a. ClassPath or. Project or. settings or. idea or. iml or. class file" &G T;>/dev/stderr exit 1 Fidoneexit 0


This article is from the "Cubs blog" blog, make sure to keep this source http://9821177.blog.51cto.com/9811177/1752304

About SVN hooks interception settings

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.