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

Re: Modifying log message in the pre-commit hook?

From: Ryan Schmidt <subversion-2007a_at_ryandesign.com>
Date: 2007-03-28 06:01:08 CEST

On Mar 27, 2007, at 19:35, Kylo Ginsberg wrote:

> I know the subversion party line is "thou shalt not modify a
> transaction in the pre-commit hook" but I have to ask anyway ;>.
> Is there any harm in massaging the log message component? (And,
> can I do so?)

Modifying the revision properties should do no harm (and svn:log is a
revision property)... But I'm not sure how to set a revision property
of a transaction... Maybe it doesn't have any yet, because it is not
a revision yet? Looking at the help of "svn propset" and "svnadmin
setlog" I only see the -r option to specify a revision number, and no
-t option to specify at transaction ID.

I know you can set the log of the revision, after it's been
committed, in the post-commit hook, using "svnadmin setlog -r $REPO
$REV $FILE" (where $FILE is a file containing the new log message).
At least that's what the help says.

To reply to the mailing list, please use your mailer's Reply To All  
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Mar 28 06:01:41 2007

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.