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

Re: Getting latest revision from a batch file

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: Sun, 18 Jul 2010 21:04:42 +0200

On 18.07.2010 18:22, Greg McCarthy wrote:
> 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?

Use the SubWCRev tool that comes with TSVN:
http://tortoisesvn.net/docs/nightly/TortoiseSVN_en/tsvn-subwcrev.html

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.net
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=2634850
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2010-07-18 21:05:04 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.