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

RE: Hook script questions

From: Linda Halligan <lhalligan_at_bitpusher.com>
Date: 2006-07-07 00:56:25 CEST


 This is exactly the help I was looking for. Thank you so much.

 I didn't figure it would be difficult. But as I said I'm not a coder so
thinking in terms of scripts is difficult for me.


-----Original Message-----
From: Ryan Schmidt [mailto:subversion-2006c@ryandesign.com]

Hi Linda! This can definitely be done. The basic strategy for the
post-commit hook would be:

* call "svnlook dirs-changed -r $REV $REPOS" (where $REV and $REPOS
are the parameters passed into the script, as in the example post-
commit hook) to get the list of directories that were changed by the

* examine each line of the output with for example grep to determine
if the path to your web site was affected

* if so, update a server-side working copy with "svn update"

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Jul 7 00:58:05 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.