I am unable to compare the local ods file with the remote ods file in SVN. Is their any way to do this?
Asked
Active
Viewed 1,484 times
2
-
`.ods` are archives, so binary files. – Bobby Mar 25 '13 at 12:18
-
ya, any alternate ways?? – user1787641 Mar 25 '13 at 12:24
-
I made the title more specific and hope to save it from being closed. It's a good question IMHO. – Stefan Steinegger Mar 25 '13 at 14:03
-
but que is closed..!!! – user1787641 Mar 25 '13 at 14:09
-
It might be reopened. Needs some more votes ... – Stefan Steinegger Mar 25 '13 at 15:50
-
For whatever reason, the .vbs files to compare ODS and ODT were missing on my TortoiseSVN installation (though other scripts like for DOCX were ok). I grabbed files from https://github.com/jrk/tortoisegit/tree/3943dc12e10fe923998e3367f83d9b8e709eb271/contrib/other/diff-scripts , added them to diff-scripts folder and it worked ! – AFract Oct 06 '20 at 17:40
1 Answers
3
Subversion cannot natively diff binary files. Open Office has a compare documents feature; if you can script into that, you can tell Subversion to use that as your diff-cmd
TortoiseSVN ships with a set of scripts that do this for both MS Word and Open Office files, so if you're on Windows there's not much left to do.

alroc
- 27,574
- 6
- 51
- 97
-
The last link should be https://stmllr.net/blog/creating-a-diff-of-openoffice-odt-documents-on-the-command-line/ (and I can't edit, I get a "queue is full" error for an hour) – David Faure Jun 07 '22 at 21:39