In Linux, SVN can only modify its own log script

Source: Internet
Author: User

An error is reported when the previous log message is modified:
Dav request failed. It may be because the pre-revprop-change hook of the version library fails to be executed or does not exist. At least one attribute change failed. The version library has not changed.
Dav request failed; it's possible that the repository's pre-revprop-change hook either failed or is non-existent. At least one Property Change failed; repository is unchanged

The reason is that the log message entered during SVN submission cannot be modified by default, but the pre-revprop-change file can be modified to achieve this goal:
# Cd/svnroot/test/hooks
# Pre-revprop-change CP pre-revprop-change.tmpl
# Vi pre-revprop-change
Delete the original one at the end. Add the following parameters:
EPOS = "$1"
REV = "$2"
User = "$3"
Propname = "$4"

If ["$ propname" = "SVN: log"]; then exit 0; FI
Exit 1

# Chmod A + x pre-revprop-change // Add the executable permission to pre-revprop-change

Of course, the simplest way is to create a blank pre-revprop-change file and put it in the hooks directory of the version library. However, this method is not strict enough and Users have the right to modify all attributes, for example, modify the author's right (you can submit the spam and then get married ).

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.