SVN: Modify committed log information

Source: Internet
Author: User
Tags svn

Sometimes it is necessary to modify or supplement the log information of the errors submitted by the previous version:


1. Change under Windows

For example, use the TORTOISESVN client under Windows, select the code directory, right-click, select <show log>

In the Log List dialog box, select a commit version, then right-click and select <edit log Message>, as shown in the following figure:


Because of the security by default, subversion does not allow developers to modify the log information of submitted reversion, which will report an error, indicate that it cannot be modified, and ask the SVN administrator to install the pre revprop change hook.

What does this hook mean? is actually a version of the log change preprocessor, mainly used to save the old log information, in order to avoid the change when the error occurs, cannot be restored.

The ability of the developer to change the log can be given by the Administrator by doing the following:

#cd/opt/svn/repos/hooks
#mv pre-revprop-change.tmpl pre-revprop-change
#chmod 755 pre-revprop-change

2. Change under Linux

$SVN propedit-r n--revprop svn:log url 
$svn propset-r N--revprop svn:log "new log Message" URL

where n is the version number, the URL is the path to the code warehouse, and if the command is executed in working copy, the URL can be slightly.

If you encounter an error message:

DAV request failed; It's possible that the repository ' s Pre-revprop-change hooks either failed or is non-existent

As with Windows changes, the administrator installs the Pre-revprop-change hook.


Reference Links:

Http://stackoverflow.com/questions/304383/how-do-i-edit-a-log-message-that-i-already-committed-in-subversion

Http://stackoverflow.com/questions/197224/what-is-a-pre-revprop-change-hook-in-svn-and-how-do-i-create-it



by Iefreer


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.