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

SubWCRev.GetWCInfo on non svn files in TortoiseSVN 1.9

From: Jan Keirse <jan.keirse_at_tvh.com>
Date: Tue, 11 Aug 2015 14:28:09 +0200

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.

Thanks,

Jan

-- 
**** 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=3131316
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2015-08-11 14:28:34 CEST

This is an archived mail posted to the TortoiseSVN Users mailing list.