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

RE: Noob question on pre-commit windows script

From: Tom Blough <tom.blough_at_truetemper.com>
Date: Fri, 8 Feb 2008 04:07:58 +0800

> Stefan Küng wrote:
>
> > Command line: C:\temp\version.bat
>
> Change that to
> cmd.exe /c "C:\temp\version.bat"

Actually it works fine without it as do batch files in the <repository>hooks
directory. My problem turned out to be with SubWCRev not liking relative
paths.

I've got things working now with the following:

Client side hook script:
 Post_commit_hook
 Path: C:\temp
 Command line: C:\temp\version.bat
 Wait: true
 Hide: true

And version.bat:
  "C:\Program Files\TortoiseSVN\bin\subwcrev.exe" "%~dp0."
"%~dp0version.h.wcr" "%~dp0version.h"

It would be great if I could make this more generic. If there were a %WCP%
parameter like the %PATH%, %PATHS%, etc available to the scripts that passed
the current working copy path that would be a start. It would also be nice
if there were some way to execute a generic client side script for all
commits. The generic script could execute before and specific WCP linked
script, or it could execute after, or it could be a default to be executed
if there was no specific WCP linked script.

Does that make sense?

Thanks, everyone for all your help.

Tom

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_tortoisesvn.tigris.org
For additional commands, e-mail: users-help_at_tortoisesvn.tigris.org
Received on 2008-02-07 21:07:10 CET

This is an archived mail posted to the TortoiseSVN Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.