Wednesday, May 11, 2016

Edit the comments after Commit SVN



  • login to the unix box where svn is installed
  • go the directory (/home/WL12c/src/csvn/data/repositories/(**Name of the Repository**)
  • execute the command -   svn propset --revprop -r (revision no.) --force "svn:log" "New Comments" (URL of the connection)

Example:

cd /bravo/WL12c/src/csvn/data/repositories/JavaMailApp

svn propset --revprop -r 6 --force "svn:log" "New Comments" http://host.jnj.com:18080/svn/JavaMailApp

*After the commands are executed the system would ask for the svn admin username/password

If there is an error 


svn: DAV request failed; it's possible that the repository's pre-revprop-change hook either failed or is non-existent
svn: At least one property change failed; repository is unchanged
svn: Error setting property 'log':


Create a hook by executing these:

[someXapp@hostName hooks]$ cp pre-revprop-change.tmpl pre-revprop-change
[someXapp@hostName hooks]$ chmod u+x pre-revprop-change
[someXapp@hostName hooks]$ chown apache:apache pre-revprop-change  //ignore if it's not successful







No comments: