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

Re: Post-Commit help

From: Mark Phippard <markphip_at_gmail.com>
Date: Thu, 31 Jul 2008 18:25:47 -0400

On Thu, Jul 31, 2008 at 11:33 AM, James O'Reilly <james_at_synergymedia.net> wrote:
> Hi everyone, new to the list. I've been banging my head against the wall
> for the last couple of days on a Windows post-script I'm trying to write and
> I'm not getting anywhere with it. Maybe someone on the list will be kind
> enough to help me.
>
> Quick explaination...
> I have 4 developers working off local working copies of a website, each
> updating and committing revisions to a repository I set up on the network.
> The developers are working in VisualStudio 2008 with the VisualSVN plugin
> and no problems.
>
> What I have working...
> I have a super simple post-commit script that updates a 5th working copy of
> the repo on the internal development webserver which is what I have IIS
> using as a webroot folder. When a developer commits, the webroot gets the
> update and they can test their changes.
>
> My post-commit.bat file:
> C:\Progra~1\Visual~1\bin\svn update
> "\\ServerName\clients\ClientName\wwwroot"
>
> My problem...
> Because we're using a few frameworks the site we are building contains
> roughly 2200 files. So when we do a commit, the post-commit script takes a
> short while to run updating the webroot. This is a bit annoying for the
> developers.

A really simple alternative would be to ditch the hook and just run
svn update as a Scheduled Task. Normally, I'd do it every hour, but
in your case perhaps every 15 minutes.

You could have svn update redirect to a log file served by your web
server so a "confused developer" could check the log and see if the
update has run yet.

On Unix you can just run the hook as a background process and return
control to the client sooner. My understanding is that no one has got
this to work on Windows.

-- 
Thanks
Mark Phippard
http://markphip.blogspot.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-08-01 00:26:10 CEST

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.