On Sun, Jul 18, 2010 at 09:22, Greg McCarthy <mccarthy.greg_at_gmail.com> 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?
>
> ------------------------------------------------------
> http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=2634775
>
> To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
>
This is probably an FAQ. TSVN is a GUI (graphical user interface),
not a CLI (command line interface). Just get the CLI interface and
install it and then you will have 'svn', 'svnadmin', ...
These can be used from batch files/scripts. There is an included
utility called 'svnversion' that it what you want.
IMO it would be _really_ nice if TSVN included the CLI binaries ---
it's a pain for me to have to DL and install the CLI binaries when I
update TSVN. I've heard reasons why they are not included (size and
most people probably don't want them). It's not a criticism, just a
personal preference. I'm wondering what the TSVN group uses for CLI
binaries, I find it hard to believe that 'power users' would not want
a CLI interface for scripting.
The windows binaries on the Subversion site are old. I get them from
the Slik SVN site (http://www.sliksvn.com/en/download). They are very
current and easy to install. There are several other sites where you
can get current builds, most also over some sort of svn services.
Cheers
- Kevin
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=2634847
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2010-07-18 20:54:34 CEST