SVN modified log information Error solution

Source: Internet
Author: User

To enable the ability to modify log, simply add a file named:pre-revprop-change.bat in the hooks directory and restart SVN.
The contents of this file are:
-----------------------------------------------------------
If "%4" = = "Svn:log" Exit 0
echo Property '%4 ' cannot is changed >&2
Exit 1
-----------------------------------------------------------

Supplemental content: SVN Common Commands

To set the mimetype of a file:

$ svn propset svn:mime-type image/jpeg foo.jpg
Property ' Svn:mime-type ' set on ' foo.jpg '

On UNIX systems, if you want a file to set Execute permissions:

$ svn propset svn:executable on Somescript
Property ' Svn:executable ' set on ' Somescript '

Perhaps for the benefit of the collaborators you have an internal property setting:

$ svn propset owner Sally FOO.C
Property ' owner ' set on ' foo.c '

If you have some errors in the log information for a particular revision, and you want to modify it, you can use--revprop to set Svn:log as the new log information:

$ svn propset--revprop-r svn:log "journaled about trips to New York."
Property ' Svn:log ' Set on repository revision ' 25 '

Or, you don't have a working copy, you can provide a URL.

$ svn propset--revprop-r svn:log "Document nap." Http://svn.red-bean.com/repos
Property ' Svn:log ' Set on repository revision ' 25 '

Finally, you can tell Propset to get input from a file, and you can even use this method to set a property to binary content:

$ svn propset owner-pic-f sally.jpg moo.c
Property ' Owner-pic ' set on ' moo.c '

Attention
By default, you may not be able to revise the version properties in the Subversion repository, and your repository administrator must display the modified version properties by creating a hook with the name Pre-revprop-change.

SVN modified log information Error solution

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.