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

Re: SubWCRev.GetWCInfo on non svn files in TortoiseSVN 1.9

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: Tue, 11 Aug 2015 20:16:15 +0200

On 11.08.2015 14:28, Jan Keirse wrote:
> Hello,
>
> I can't find a bug report for this anywhere and don't think it's
> intended behavior, so:
>
> After installing TortoiseSVN 1.9.0 some of my code no longer works as
> it used to in 1.8.x
> I have been able to create a small reproduction sample:
>
> --------------------testCOM.js------------------------------------------------------------
> // test script for the SubWCRev COM/Automation-object
>
> filesystem = new ActiveXObject("Scripting.FileSystemObject");
>
> revObject1 = new ActiveXObject("SubWCRev.object");
>
> revObject1.GetWCInfo(
> filesystem.GetAbsolutePathName("C:\\nonexistingfile.txt"), 1, 1);
> --------------------end of
> testCOM.js-------------------------------------------------------
>
>
> This used to not give runtime errors, but now it gives me an error
> message like this:
> ---------------------------
> Windows Script Host
> ---------------------------
> Script: C:\sources\test.js
> Regel: 8
> Teken: 1
> Fout: De server heeft een uitzondering geretourneerd.
> Code: 80010105
> Bron: (null)
>
> ---------------------------
> OK
> ---------------------------
>
> That message translates to The server returned an exception.
> It only happens if the file (that can but does not have to exist) is
> in a folder that is not under subversion control. I was hoping it to
> return without errors and result in revObject1.IsSvnItem == false .
> I worked around it with try catch, but even if this is intended
> behavior, an error message like 'The file is not under version
> control' would probably be more appropriate.

Fixed in r26685.

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=3131382
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2015-08-11 20:16:17 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.