[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: Jan Keirse <jan.keirse_at_tvh.com>
Date: Wed, 12 Aug 2015 13:13:27 +0200

On Tue, Aug 11, 2015 at 8:27 PM, Stefan Küng <tortoisesvn_at_gmail.com> wrote:
> 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.
>

That was fast, thanks! I'll test it as soon as the nightly builds are working.

-- 
**** DISCLAIMER ****
http://www.tvh.com/glob/en/email-disclaimer
"This message is delivered to all addressees subject to the conditions
set forth in the attached disclaimer, which is an integral part of this
message."
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=3131590
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2015-08-12 21:57:38 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.