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

Re: OpenDocumentType compare error

From: Tobias Schäfer <tobiasschaefer_at_gmx.de>
Date: 2007-02-18 17:58:02 CET

On Saturday 17 February 2007 23:51, Doctor Nemesis wrote:
> 'Because this is a diff, TortoiseSVN marks the files as read-only.
> 'However, OpenOffice will not compare any file with that flag set.
> 'Make sure we un-set that flag.
> Set objFSO = CreateObject("Scripting.FileSystemObject")
> Set objFile = objFSO.GetFile(sNewDoc)
> If objFile.Attributes = objFile.Attributes AND 1 Then
> objFile.Attributes = objFile.Attributes XOR 1
> End If

Change the condition to

If (objFile.Attributes AND 1)=1 Then

and it will work correctly.

Fixed in revision 8726 and ported to the 1.4.x branch in revision 8727.

Tobias

-- 
       ___
  oo  // \\      "De Chelonian Mobile"
 (_,\/ \_/ \     TortoiseSVN
   \ \_/_\_/>    The coolest Interface to (Sub)Version Control
   /_/   \_\     http://tortoisesvn.net
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: users-help@tortoisesvn.tigris.org
Received on Sun Feb 18 17:58:47 2007

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.