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

Re: Messages from hooks

From: Juanma Barranquero <jmbarranquero_at_wke.es>
Date: 2004-02-19 16:06:28 CET

On Thu, 19 Feb 2004 15:34:40 +0100
Marcin Kasperski <Marcin.Kasperski@softax.com.pl> wrote:

> I think it would be good idea if the hook could somehow give an
> error message which would be presented to the client.

In svn:// and file:// cases (svnserve and local access), you already get
the STDERR of the hook:

  D:\> svn propset --revprop svn:log -r 3 "Test message." file:///D:/my/repo/test
  svn: 'pre-revprop-change' hook failed with error output:
  Rejected because I say so.

  D:\> svn propset --revprop svn:log -r 3 "Test message." svn://localhost/
  svn: 'pre-revprop-change' hook failed with error output:
  Rejected because I say so.

but not so in the http:// case:

  D:\> svn propset --revprop svn:log -r 3 "Test message." http://localhost/test
  svn: DAV request failed; it's possible that the repository's pre-revprop-change
  hook either failed or is non-existent
  svn: At least one property change failed; repository is unchanged

Allowing that would need to develop a protocol to send that info back to
the client, and that's non-trivial, and perhaps even unneeded. After all,
the hook could send e-mail on failure, or write a log somewhere...

                                                                Juanma

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Feb 19 16:06:51 2004

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

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