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

OpenDocumentType compare error

From: Doctor Nemesis <hdn_at_doctor-nemesis.org.uk>
Date: 2007-02-17 23:51:24 CET

I am not on the mailing list. Please reply with any queries directly.

When using TortoiseSVN 1.4.3, Build 8645 - 32 bit and OOo 2.1 under
Windows XP SP2 I have encountered the following problem with the ODT
file compare.

1 ) Alter ODT file.
2 ) Check read/write status of ODT file. The file is read/write.
3 ) Compare ODT file.
4 ) OOo opens in read-only mode. No differences are shown between the
altered file and the base file.
5 ) Close OOo.
6 ) Check read/write status of ODT file. The file has now changed to
read-only.
7 ) Compare ODT file.
8 ) OOo opens in read/write mode. The differences are shown.
9 ) Close OOo.
10 ) Check read/write status of ODT file. The file has now changed to
read/write.

Steps 3 to 10 can then be repeated, toggling the read/write status of
the file.

I appear to have solved this problem by commenting the following section
out of the diff-odt.vbs file:

'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

Now comparing ODT files works as expected.

Thanks,

Malcolm.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: users-help@tortoisesvn.tigris.org
Received on Sun Feb 18 02:43:00 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.