You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Nick Thompson <ni...@agere.com> on 2005/11/24 10:19:00 UTC

modifying a transaction log message

The Book points out that changing a transaction is not a good idea as 
it leaves the client out of sync. I can't see how changing the log 
would be harmful though.

What I'd like the do is:

    svn commit -m bugid:4582

and then have a hook script ask a CRM program for headline text for 
the given bug and add it to the transaction log.

Why might that be a problem?

How can I change the transaction log from a hook anyway? I saw 
svnadmin setlog, but that works on a revision, not a transaction I 
think.

Thanks,
-- 
> Nick Thompson

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

Re: modifying a transaction log message

Posted by Greg Thomas <th...@omc.bt.co.uk>.
On Thu, 24 Nov 2005 10:19:00 +0000, Nick Thompson
<ni...@agere.com> wrote:

>What I'd like the do is:
>
>    svn commit -m bugid:4582
>
>and then have a hook script ask a CRM program for headline text for 
>the given bug and add it to the transaction log.
>
>Why might that be a problem?

That wouldn't be a problem - you're changing a revision property not a
revision - see
http://svnbook.red-bean.com/en/1.1/ch05.html#svn-ch-5-sect-1.2 and
http://svnbook.red-bean.com/en/1.1/re23.html though take in to account
the "Note" at the bottom of the latter. As you can edit a revprop on a
URL, you won't even need to check out a local working copy as part of
your hook.

That said, most people seem to take the message from the commit and
add that to the issue tracking system, rather than the other way
around. You may want to consider if that is the right way for you.

Greg
-- 
This post represents the views of the author and does
not necessarily accurately represent the views of BT.

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