Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Compare odt files in svn

Tags:

svn

I use svn to store the revisions of my specification files, written with oowrite (OpenOffice.org). I cannot find the way to compare different revisions of my odt files. It complains that they are binary.

Is there any tool or plugin to compare odt files stores in svn repository?

like image 998
Llistes Sugra Avatar asked Jun 14 '10 10:06

Llistes Sugra


People also ask

How do I compare two ODT files?

Open the edited document that you want to compare with the original document. Select Edit > Compare Document. An open document dialog appears. Select the original document and click Insert.

How to compare two files in SVN?

If you want to see the differences between a file in your working copy, and a file in any Subversion repository, you can do that directly in explorer by selecting the file then holding down the Shift key whilst right clicking to obtain the context menu. Select TortoiseSVN → Diff with URL.

How do I compare two SVN branches?

Go to the repository browser (<right click>/TortoiseSVN/Repo-browser/<enter URL>). Open right click menu on branch B, select 'Mark for comparison'. Then open right click menu on branch A, select 'Compare URLs' or 'Show differences as unified diff'.


2 Answers

Use oodiff like this : oodiff -u myfile.odt and if it's a file which is in a SVN workspace it will compare the current version with the one on the server and display the difference in a textual way in the console (requires the installation of odt2txt).

like image 70
Anthony O. Avatar answered Oct 05 '22 07:10

Anthony O.


If you are on Windows you can use TortoiseSVN, which installs VBScript files for comparing and merging ODF documents as well as Microsoft Office documents.

You will find these scripts in the folder

C:\Program Files\TortoiseSVN\Diff-Scripts

and you can also modify these scripts to your needs.

like image 43
Dirk Vollmar Avatar answered Oct 05 '22 07:10

Dirk Vollmar