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

Re: Hooks and parameters

From: Bob Proulx <bob_at_proulx.com>
Date: 2006-05-23 17:19:27 CEST

François wrote:
> Is it possible to send custom parameters to hooks? And if so, does Tortoise
> SVN allow it?

No. The hook interface is defined in the subversion server code. You
would need to patch the code and recompile in order to change it.

The TortoiseSVN interface works on the client side. Hooks are
triggered on the server not the client. Your TortoiseSVN client like
any other client would cause the server to trigger the hooks.

> My goal is to be able to switch between two different actions in a
> post-commit, depending on the user's input.

There is no way to do what you are asking. Things are not set up that
way. Please provide a little more detail. What are you trying to do?

The post-commit is non-interactive. It is invoked *after* the
commit. It is too late to affect the commit at that time. In the
pre-commit you are not allowed to modify the transaction. The
template documents what can and cannot be done in pre-commit.

Bob

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue May 23 17:27:46 2006

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.