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

Noob question on pre-commit windows script

From: Tom Blough <tom.blough_at_truetemper.com>
Date: Thu, 7 Feb 2008 00:34:17 +0800

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
Received on 2008-02-06 17:34:33 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.