[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
direction.

 

I’m running an XP system with tortoise installed from
TortoiseSVN-1.5.0.12266-dev-win32-svn-1.5.0-dev.msi

 

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.

 

HYPERLINK
"http://tortoisesvn.net/docs/nightly/TortoiseSVN_en/tsvn-dug-settings.html"h
ttp://tortoisesvn.net/docs/nightly/TortoiseSVN_en/tsvn-dug-settings.html
(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,

Paul.

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.

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