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

Getting latest revision from a batch file

From: Greg McCarthy <mccarthy.greg_at_gmail.com>
Date: Sun, 18 Jul 2010 18:22:40 +0200

I'm busying trying to automate a svn update using a batch file. If the
revision number has changed then I need to compile the application.

So far the svn update is easy using:
TortoiseProc.exe /command:update /path:"c:\svn" /closeonend:1

I would however like to get the latest revision number via a batch
file and into a variable so if its changed then call the compile
script.

Is there a easy way to do this. I found a post on another site for a
different svn app and they use:

svn info --revision HEAD

and then a FOR in the batch file to get the revision version. Can this
somehow be applied to tortoise?

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=2634775

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2010-07-18 18:40:22 CEST

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.