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

Re: Small tool to make Tortoise auto-connect to VPN

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: Tue, 13 Jul 2010 18:37:01 +0200

On 11.07.2010 21:13, Leo Davidson wrote:
> On 11 July 2010 17:35, Stefan Küng<tortoisesvn_at_gmail.com> wrote:
>
>> btw: you don't have to use a bat file to start the tool. Just pass the
>> parameter as part of the "path to script".
>
> I couldn't get that to work. I haven't had a chance to investigate
> properly but a couple of ideas:
>
> There's a space in the path to the command (I've got it stored below
> Program Files) which might complicate things. I tried with and without
> quotes around the command path, with the VPN name argument always
> unquoted.

This works (at least with the new pre-connect hook on trunk) just fine:
put the path to the exe in quotes, add a space and then the parameter.

> Also, if TSVN always sends the normal arguments (PATH DEPTH
> MESSAGEFILE CWD) to the command, appended to the string in the config
> dialog, I think that will cause my code to reject the command-line for
> having too many arguments. (I wrote it like that so people who don't
> know to quote arguments get a syntax error if their VPN name contains
> a space.)

Ok, in that case you're out of luck. The other hooks all pass the
parameters unconditionally so the hook script has to deal with those.

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=2632834
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2010-07-13 18:37:13 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.