[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 please

From: Andy Levy <andy.levy_at_gmail.com>
Date: Thu, 31 Jul 2008 15:56:48 -0400

On Thu, Jul 31, 2008 at 13:35, James O'Reilly
<james.oreilly_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.
> My solution attempt...
> ---------------------------------
> I read about SVNLOOK and figured it might hold some power to reduce the
> update to only be the changes commited. I failed miserably at implementing
> it because of my lack of batch file syntax.

svn update only transmits the differences between the WC and the
repository. So there's not much to be gained here.

> Questions...
> ---------------------------------
> 1. Is there an easier way to do what I'm doing or am I on the right track?
> It does seem to work, albeit slow.

You are on the right track.

> 2. Can someone write me a post-commit.bat file that does what I'm trying to
> do? I'm looking for a script that is a BAT file. I can install grep if
> needed for the SVNLOOK.

Have your post-commit spawn a new process to run the svn update. You
will lose the ability for the commiter to know whether the update
succeeded or not, but you can exit the post-commit script immediately
and free up the client.

To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-07-31 21:57:45 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.