[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Change the log message for a transaction BEFORE it's be committed?

From: Ryan Schmidt <subversion-2009a_at_ryandesign.com>
Date: Wed, 4 Feb 2009 02:53:24 -0600

On Feb 3, 2009, at 16:26, Reedick, Andrew wrote:

>>> On Tue, Feb 3, 2009 at 13:20, <ric_rps_at_hotmail.com> wrote:
>>>> I need to change the log message for a transaction in a pre-commit
>>>> script...it is possible?
>
> In theory, if you can link the pre-commit transaction to the post
> commit
> revision number, you can set the values in the post-commit hook. Ex:
> if the check-in is transaction 1234, which becomes revision 199, you
> could add your custom values to the svn:log attribute for revision 199
> in the post-commit hook.

Right, you can easily change the log message in the post-commit
script using "svnadmin setlog".

In the pre-commit script you don't have a revision yet; you have a
transaction, and there is no command-line program that lets you
change the log message of a transaction. However I believe you can do
it if you write a program using one of the Subversion language
bindings (Python, Perl, etc.)

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1100943

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-02-04 09:54:22 CET

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.