[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: Hari Kodungallur <hkodungallur_at_gmail.com>
Date: Tue, 22 Apr 2008 09:47:32 -0700

On Tue, Apr 22, 2008 at 12:30 AM, paptimusx <paptimusx_at_gmail.com> wrote:

> Hello, there.
>
> There is a doubt in the argument that 'pre-commit.bat' receives.
>
> #1 -> "c:/var/svn/svnrepo"
> #2 -> "9609-1"
>
> I think '-1' of the second argument is extra. It makes svn-notify
> malfunctions.
>
> ?? svnnotify --repos-path PATH -r 9609-1 ...
> => svnnotify --repos-path PATH -r 9609 ...
>
> How should I do?
>
> Thanks in advance.
>
> % ver
> Microsoft Windows XP [Version 5.1.2600]
> % svnnotify -v
> svnnotify 2.64
> % svn --version
> svn, version 1.4.6 (r28521)
> compiled Dec 20 2007, 16:33:06

Note that pre-commit is called before the commit actually happens. That is
the reason why you have the "-1" against the 'potential' revision number.
This is called the transaction number. A revision number can be obtained
only after the commit it complete.

I think svnnotify is a tool to notify others of commit activity within svn.
In which case you should use svnnotify within a post-commit (that is what
the docs of svnnotify asks you as well).

Regards,
-Hari
Received on 2008-04-22 18:48:01 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.