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

RE: Re: Post-Commit help

From: Brian Erickson <erickson_at_BAUERCONTROLS.com>
Date: Mon, 4 Aug 2008 13:20:06 -0400

I looked at this a few months ago but didn't get the underlying problem
with file handles. I took another look and think I found a solution.
I'm running XP and it works for me.

My pre commit hook (pre-commit.bat)
   start command nul /c d:\temp\test\hooks\newp.bat

Contents of newp.bat
   ping -n 1 -w 30000 1.1.1.1 (this is essentially a 30 second delay)

NOTE:
   1) It's important that you run command (not cmd).
   2) Command is limited to the old 8.3 DOS notation for files. If you
try to execute a batch file or program that has a long file name you'll
get a 'bad command for file name' error.
   3) Command is still around with Vista but I didn't test there

Brian

 

> -----Original Message-----
> From: George Stein [mailto:george.stein_at_go4more.de]
> Sent: Monday, August 04, 2008 10:52 AM
> To: users_at_subversion.tigris.org
> Subject: Re: Post-Commit help
>
>
> Hi Mark,
> > Mark Phippard wrote:
> > 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.
>
> Just let me do some marketing:
> This problem is documented in issue #2560
> (http://subversion.tigris.org/issues/show_bug.cgi?id=2560),
> which has a low priority, unfortunately. But it would also be
> essential for other post hook driven processes, needed e.g.
> in the write-thru-proxy, see
> http://subversion.tigris.org/servlets/ReadMsg?listName=dev&msg
> No=131545.
>
> It is a bit annoying because it worked in 1.3.0. It seems
> that Windows isn't a first citizen in this special case.
> Unfortunately I can't fix it myself (don't know any C), but I
> could do some tests.
>
> Thanks,
> George
> --
> View this message in context:
> http://www.nabble.com/Post-Commit-help-tp18762120p18812825.html
> Sent from the Subversion Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
> For additional commands, e-mail: users-help_at_subversion.tigris.org
>
>

---------------------------------------------------------------------
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-04 19:20:34 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.