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

Re: reuse of subwcrev com object no longer possible with 1.9.0

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

On 11.08.2015 16:47, Jan Keirse wrote:
> Hello,
>
> I used to be able to reuse the SubWCRev com object. However, if I now
> execute the following:
>
> // testCOM.js - javascript file
> filesystem = new ActiveXObject("Scripting.FileSystemObject");
>
> revObject1 = new ActiveXObject("SubWCRev.object");
> try{
>
> revObject1.GetWCInfo(filesystem.GetAbsolutePathName("C:\\some\\modifiedfile.xml"),
> 1, 1);
> revObject1.GetWCInfo(filesystem.GetAbsolutePathName("C:\\some\\unmodifiedfile.xml"),
> 1, 1);
> if (revObject1.HasModifications)
> WScript.Echo("modified");
> else
> WScript.Echo("not modified");
>
> } catch (err) {
> WScript.Echo("woeps" );
> }
>
> It results in a message 'modified' because the HasModifications is set
> to true by the first call to GetWCInfo and no longer reset to false
> when the second call to GetWCInfo is called.
>
> I would prefer it if it would be possible to reuse the object, because
> I have some logic that calls it on about 15000 files and the
> programming language used to do this doesn't handle recreation of the
> com object gracefully.

changed in r26686.

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