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

Re: post-update hook?

From: Jan Hendrik <jan.hendrik_at_bigfoot.com>
Date: 2004-06-04 16:34:40 CEST

Concerning Re: post-update hook?
kfogel@collab.net wrote on 2 Jun 2004, 10:17, at least in part:

> "Jan Hendrik" <jan.hendrik@bigfoot.com> writes:
> > I am on the way to have the contents pages in web projects here
> > created automatically by a script from versioned datafiles
> > (currently contents are static, versioned HTML files). This script
> > shall be invoked i. a. by a post-commit or even start-commit hook.
> >
> > I don't want to put the automatically generated contents under
> > version control, but I would like having them updated in working
> > copies on svn update. Is there something like a post-update hook?
> >
> > OK, I know I could write a batch file doing this, but folks use
> > TortoiseSVN and this thing should not introduce another step for
> > them. I also know I could (and perhaps should) do this entirely on
> > the web server, but for a number of reasons I would rather prefer
> > having those contents files being created locally.
>
> Since your post-commit hook is invoking the update, why not have the
> post-commit hook then do the post-update processing as well?
>
> (This is what I do for a similar site.)

As I see now what I wanted to do is impossible since the hook is
executed on the svn server and has no idea from where both
commit and update request origin. So a hook script may be able
to update a specific working copy or webserver, but not any
working copy. Such a hook would have to be placed into the
working copies. Sorry for the noise.

Jan Hendrik

---------------------------------------
Freedom quote:

     The power which a multiple millionaire,
     who may be my neighbor and perhaps my employer has over me
     is far less than that which the smallest functionary
     who wields the coercive power of the state,
     and on whose discretion it depends
     whether and how I am allowed to live or to work.
                -- F. A. Hayek

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