You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Doru Constantin <do...@home.ro> on 2004/06/29 19:09:02 UTC

How to change the comment in log

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<small><font face="Verdana">After I do:<br>
&nbsp;&nbsp;&nbsp; svn ci .... -m "somme comment..."<br>
I whant to change </font></small><small><font face="Verdana">"somme
comment..." to "other comment..."</font></small><br>
<small><font face="Verdana">How to change this (without python if
posible)?<br>
Thank you in advance.<br>
&lt;/doru&gt;<br>
</font></small>
</body>
</html>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: How to change the comment in log

Posted by Toby Johnson <to...@etjohnson.us>.
Doru Constantin wrote:

> After I do:
>     svn ci .... -m "somme comment..."
> I whant to change "somme comment..." to "other comment..."
> How to change this (without python if posible)?
> Thank you in advance.
> </doru>

Read the book sections in Chapter 9 on propset and propedit. Basically, 
you can do this three ways:

1. svn propset svn:log --revprop -r <REVISION> "My corrected log 
message" <URL>
2. svn propset svn:log --revprop -r <REVISION> -F 
<file-with-corrected-log-message.txt> <URL>
3. svn propedit svn:log --revprop -r <REVISION>

The first is if your log message is just one line; the second is if your 
log message is an a text file, and the third will open up your text 
editor to edit the log entry directly.

<REVISION> is the revision of your repository for which you want to edit 
the comment; you can use HEAD or any of the other "special" revision 
words here. <URL> is the URL of your repository; since you're editing an 
unversioned repository property rather than a versioned file property 
(the log message is attached to that entire revision, not to any one 
file), you only need to give the base URL of your Subversion repository, 
and not the full URL to the file itself.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: How to change the comment in log

Posted by kf...@collab.net.
Toby Johnson <to...@etjohnson.us> writes:
> By the way, I should also mention that you must have a
> "pre-revprod-change" hook script in place before editing log comments;
   ^^^^^^^^^^^^^^^^^^

That should be 'pre-revprop-change', of course (just a typo).

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: How to change the comment in log

Posted by Toby Johnson <to...@etjohnson.us>.
Doru Constantin wrote:

> After I do:
>     svn ci .... -m "somme comment..."
> I whant to change "somme comment..." to "other comment..."
> How to change this (without python if posible)?
> Thank you in advance.
> </doru>

By the way, I should also mention that you must have a 
"pre-revprod-change" hook script in place before editing log comments; 
see "Hook Scripts" in chapter 5. It doesn't matter what the hook script 
does (on Windows, it can be an empty .bat file; on Unix, it can be an 
empty shell script that returns 0), just that it exists and is 
executable by the SVN server.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org