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

Accessing %VERSION% parameter in update hook batch script

From: Paul Conlon <pconlon_at_electromag.com.au>
Date: Thu, 6 Mar 2008 13:28:04 +0900

Hi all.


I’ve devoted some number of hours to finding a solution to this problem but
I seem to be unfortunately missing something fundamental with respect to
tortoise update hooks. Hopefully someone can point me in the right


I’m running an XP system with tortoise installed from


I wish to run a batch script as a pre/post client side update hook which has
access to the svn revision used for the update.


(and other documentation) suggests that this information should be passed to
the hook script as either the 4th parameter (pre-update) or 3rd parameter
(post-update) but when the bat script runs, I am unable to access the
version information.


For example, my pre-update hook “pre-update.bat”

containing the line “echo SVN revision:[ %4 ]”

prints “SVN revision [ ]” .


Has anyone encountered any similar problems?

Many thanks,


No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.516 / Virus Database: 269.21.5/1314 - Release Date: 5/03/2008
6:38 PM
Received on 2008-03-06 07:05:12 CET

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