[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: Helmut Heidegger <h.heidegger_at_phion.com>
Date: 2004-06-18 16:29:48 CEST

Branko Čibej wrote:
> 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.
ok, thanks

> > 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?

I just realized, that the hook scripts are running on the server under
the apache process, so I just piped the echo in a tmp file.

> > 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.

since I don't know in the hook files which part of repository is
currently worked on svn doesn't help anything. I learned of the hook
examples to use svnlook...

thanks for the answer

Helmut Heidegger
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Jun 18 16:31:44 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.