[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: Ron Wilson <ronw.mrmx_at_gmail.com>
Date: Wed, 6 Feb 2008 11:59:01 -0500

The SVN hook scripts are for doing server side operations, even when
the repository is local to the SVN client (in this case, TSVN).

What you want would require a client side hook script. This is not
currently supported in the released TSVN, but, as I recall, is planned
for the 1.5.0 release, so may be in the nightly builds of TSVN.

On 2/6/08, Tom Blough <tom.blough_at_truetemper.com> wrote:
> I'm running into trouble trying to automate version info updating. I've
> installed TortoiseSVN 1.4.7 using a local file based repository. Using
> SubWCRev.exe I've created a batch file in my working directory:
>
> Version.bat (1 line):
> "C:\Program Files\TortoiseSVN\bin\subwcrev.exe" .\ Version.java.wcr
> src\net\thebloughs\multitherm\Version.java
>
> This single line batch file works as expected when run from the command line
> in the directory. If I create a pre-commit script to call this batch file:
>
> pre-commit.bat (2 lines):
> if exists version.bat call version.bat
> exit 0
>
> I get the following error - svn: 'pre-commit' hook failed with error output:
> version.bat was unexpected at this time. Trying to debug this problem, I
> changed the pre-commit script to:
>
> Pre-commit.bat (2 lines):
> "C:\Program Files\TortoiseSVN\bin\subwcrev.exe" "C:\Documents and
> Settings\tblough\My Documents\Programming Projects\MultithermGrapher"
> "C:\Documents and Settings\tblough\My Documents\Programming
> Projects\MultithermGrapher\Version.java.wcr" "C:\Documents and
> Settings\tblough\My Documents\Programming
> Projects\MultithermGrapher\src\net\thebloughs\multitherm\Version.java"
> exit 0
>
> This runs without error and, unfortunately, without apparently doing
> anything as the Version.java file is not updated.
>
> What am I doing wrong? How can I get a pre-commit script to call my
> version.bat file in my working directory?
>
> Thanks,
>
> Tom Blough
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_tortoisesvn.tigris.org
> For additional commands, e-mail: users-help_at_tortoisesvn.tigris.org
>
>

---------------------------------------------------------------------
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-06 17:59:08 CET

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