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

Re: some hook questions

From: Branko ÄŒibej <brane_at_xbc.nu>
Date: 2004-06-18 14:10:50 CEST

Helmut Heidegger wrote:

> Hello,
>
> I have some questions regarding hook scripts:
>
> 1. Do I have to restart the httpd server to take affect of changings in
> the hook scripts? (also creating start-commit...)

No.

> 2. I have added some echo commands to see what happens, but there is
> nothing displayed. Is there a possibility to debug / test the hook
> scripts?

"There is nothing displayed" is a bit vague. Where do you expect things
to be displayed?

> 3. I want to check if someone copies a branch to the tags directory if
> some svn:external references are correct and uptodate. Can I use
> commands like svn propget, svn info, svn status in the hook scripts?

You can, but "svn info" and "svn status" only work with working copies,
not directly with repositories.

> Or is there a better way to get to this info?

You can certainly do a "svn propget" in a post-commit hook. If you use
the script bindings, or write a program tat links with the Subversion
libraries, you could examing the properties before the commit, in a
pre-commit hook.

-- 
Brane ÄŒibej   <brane_at_xbc.nu>   http://www.xbc.nu/brane/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Jun 18 15:45:01 2004

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.