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

Re: Determining TrotoiseSVN version from a script.

From: Dave Lawrence <dlawrence_at_ad-holdings.co.uk>
Date: 2007-08-06 14:07:34 CEST

Stefan Küng wrote:
> Bob Cunningham wrote:
>> I'm automating key portions of an error-prone manual process that
>> presently uses TortoiseSVN. The script will use the Cygwin
>> command-line svn client, and is intended to run autonomously (no human
>> interaction required).
> Use the official Subversion client for Windows. The cygwin svn client is
> *not* supported by the Subversion team.
> And more important: it doesn't use the same working copy format since it
> simulates a Linux client - working copies are *not* compatible between
> different OS.

If your script runs in Cygwin then that doesn't really allow to you use
the Win32 client. Cygwin SVN may be unsupported officially but here's a
bit of advice from some who's been using it in scripts:

Consider running your automated processes (whatever they are) on a
completely separate working copy never to be touched by Tortoise SVN.
It may be preferable to keep automated processes well away from
"general" working copies anyway (or it may be completely unacceptable to
you, I can't really judge as I don't know what it is you're trying to

If you can separate out automated stuff into separate working copies,
consider using a different admin dir, eg .svn for TortoiseSVN and _svn
for your scripts (read up about the "dot net hack" -- this environment
can be set locally to your script leaving tortoise unaffected). Another
benefit of this is that it stops the TSVN status cache from nosing
around in your scripted copies.

I use PySVN in Cygwin, (I had to compile it) If you know Python then
it's fairly easy to get to grips with - I switched to it because I got
fed up of having to do string parsing on svn's stdout, which is designed
to be human readable so contains awkward constructs such as sentences,
which are not great things to have to process automatically.

To unsubscribe, e-mail: users-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: users-help@tortoisesvn.tigris.org
Received on Mon Aug 6 14:06:26 2007

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.