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

Re: pre-commit hooks extra argument

From: Ryan Schmidt <subversion-2008b_at_ryandesign.com>
Date: Tue, 22 Apr 2008 14:35:00 -0500

On Apr 22, 2008, at 5:28 AM, paptimusx wrote:

>> 9609-1" is not a revision number (using the -r parameter), it is
>> a transaction number (you use the -t parameter). At least, you
>> would with svnadmin. Not sure if svnnotify supports the -t
>> parameter. If in doubt, consult the svnnotify documentation or
>> contact the authors of svnnotify.
>
> -t? what is the transaction number?
> In the option of svnnotify, -t means '--to ADDRESS'
>
> svnnotify --help
> :
> -r --revision REVISION Commit revision number. Required.
> -t --to ADDRESS The notification destination email
> address.
>
> thank you.

Looks like svnnotify does not support acting on transactions, only on
revisions. So you will need to call svnnotify from the post-commit
hook then, not the pre-commit hook. At pre-commit hook time, the
transaction has not yet been accepted and has not yet been assigned a
revision number. At post-commit time it has.

Don't forget to Reply All so your reply goes to the list too, not
just to me.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-04-22 21:35:38 CEST

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.