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

TortoiseSVN bug: compare Open Office documents fails when filename contains spaces

From: Jonathan Ashley <jonathan.ashley_at_praxis-his.com>
Date: 2007-09-13 09:10:57 CEST

Hello,

Just reporting a small bug in the built-in TortoiseSVN comparison
functions.

Using TortoiseSVN 1.4.5. build 10425 on Windows XP Professional, I am
trying to compare two revisions of a Word document using OpenOffice
Writer as the comparison tool. I have changed the Settings->Advanced so
that the script invoked for .doc files is the same as the default for
.odt documents.

If I try and compare revisions of a document with spaces in its name,
using the Repo Brower->Log, then selecting two revisions and Compare,
the comparison works.

If I then try and compare the same two revisions, using the log message
window popped up by right-clicking the file in a working copy, the
compare fails with the error message
"<document_name>-rev<earlier_revision_of_the_two>.svn000.tmp.doc does
not exist".

If I try and compare the two revisions using the log window from a
working copy *without* having previously done a comparision using the
log window from the Repo Browser, the compare fails with the error
message "Script: C:\Program Files\TortoiseSVN\Diff-Scripts\diff-odt.vbs
| Line: 65 | Char: 1 | Error:
com.sun.star.lang.IllegalArgumentException: URL seems to be an
unsupported one. | Code: 800A03E9 | Source: [automation bridge]".

I have done a bit of investigation, and I think the problem is something
to do with the way spaces are converted into the string '%20' when the
file names are turned into URLs. It doesn't seem to happen consistently
- so the compare is trying to open a file with a converted name, when
the name of the temporary file on the disk contains real spaces.

Regards,

--
Jonathan Ashley
Tel +44 (0)1225 823879
Fax +44 (0)1225 469006
This email is confidential and intended solely for the use of the individual to whom it is addressed. If you are not the intended recipient, be advised that you have received this email in error and that any use, disclosure, copying or distribution or any action taken or omitted to be taken in reliance on it is strictly prohibited. If you have received this email in error please contact the sender. Any views or opinions presented in this email are solely those of the author and do not necessarily represent those of Praxis. 
Although this email and any attachments are believed to be free of any virus or other defect, no responsibility is accepted by Praxis or any of its associated companies for any loss or damage arising in any way from the receipt or use thereof. The IT Department at Praxis can be contacted at it.support@praxis-his.com.
Praxis High Integrity Systems Ltd:
Company Number: 3302507, registered in England and Wales
Registered Address: 20 Manvers Street, Bath. BA1 1PX
VAT Registered in Great Britain: 682635707
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Thu Sep 13 09:20:49 2007

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.