You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by "Young, Jason (GE Indust, GE Fanuc)" <Ja...@ge.com> on 2007/03/12 17:44:30 UTC

Hook script to update web page

Before I write one, does anyone have a hook script that updates HTML
files based on which path in subversion was updated?

For example, I have a project in one subversion folder, and when the
revision changes (a file is updated in that project), I want a certain
HTML page to be modified.  It doesn't matter what the file contains (I'm
trying to trigger cruise control.net to build it).

I thought of simply writing the files each time, but cruise control goes
by the last modified time, not the actual contents.

Thanks!
Jason

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org


Re: Hook script to update web page

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Mar 12, 2007, at 12:44, Young, Jason ((GE Indust, GE Fanuc)) wrote:

> Before I write one, does anyone have a hook script that updates HTML
> files based on which path in subversion was updated?
>
> For example, I have a project in one subversion folder, and when the
> revision changes (a file is updated in that project), I want a certain
> HTML page to be modified.  It doesn't matter what the file contains  
> (I'm
> trying to trigger cruise control.net to build it).
>
> I thought of simply writing the files each time, but cruise control  
> goes
> by the last modified time, not the actual contents.

Have you considered just having a working copy on the server, and  
using "svn up" in the post-commit hook to update the working copy?


-- 

To reply to the mailing list, please use your mailer's Reply To All  
function


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

RE: Hook script to update web page

Posted by "Young, Jason (GE Indust, GE Fanuc)" <Ja...@ge.com>.
I should probably mention it's for Linux.

-----Original Message-----
From: Young, Jason (GE Indust, GE Fanuc) 
Sent: Monday, March 12, 2007 12:45 PM
To: users@subversion.tigris.org
Subject: Hook script to update web page

Before I write one, does anyone have a hook script that updates HTML
files based on which path in subversion was updated?

For example, I have a project in one subversion folder, and when the
revision changes (a file is updated in that project), I want a certain
HTML page to be modified.  It doesn't matter what the file contains (I'm
trying to trigger cruise control.net to build it).

I thought of simply writing the files each time, but cruise control goes
by the last modified time, not the actual contents.

Thanks!
Jason

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org