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

Re: post-commit hook questions

From: Branko Čibej <brane_at_xbc.nu>
Date: 2002-10-15 00:27:23 CEST

Noel Yap wrote:

>I have a few questions about post-commit hooks:
>1. How can I get/set properties from within a hook?
>Will "svn propset" and "svn propget" eventually be
>generalized to work on URL's?
>
I don't think we have any plans for that, but patches are always
welcome. :-) But be aware that changing a file or dir property requires
a commit.

>2. Does the post-commit hook occur inside or outside
>the original transaction? If it occurs inside, will
>it deadlock if I try to perform another commit
>(assuming I take care of infinite loop scenarios)
>inside the post-commit script?
>
The hook itself is run synchronously. Because of that, the hooks I use
all fork off the real work to another process and return immediately,
because the client is blocked during hook execution, which could lead to
timeouts.

>3. Is there a way to differentiate between a branch
>and a tag (so that the post-commit hook can treat them
>differently)? Will there be one in the future?
>
>
Now, you know that's a stupid question, don't you? :-) How can
Subversion tell the difference between tags and branches, when it
doesn't even enforce a repository layout?

What are you trying to do, anyway?

-- 
Brane Čibej   <brane_at_xbc.nu>   http://www.xbc.nu/brane/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Oct 15 00:28:08 2002

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.