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

Is it possible to synchronize unpacked sources with its binary container?

From: Richard Bos <ml_at_radoeka.nl>
Date: 2007-05-21 23:41:52 CEST


the situation is as follows, an svn repository that holds many binary odt
files. These are actually just binary containers with compressed xml (text)
files. I very much would like to track the changes that are made to the xml
files inside that binary odt file. To be more precise I'm only interested to
follow the changes made to the file content.xml inside the odt binary
container. The advantage of the having the content.xml in the svn repository
is that e.g. annotations can be shown, and that diffs made to the document
are automatically included in e.g. post-commit notification emails.

The question is it possible to synchronize the svn commands that are performed
on the binary odt file? For example:

- An odt file gets added to an svn repository, when this succeeds the svn
client should unpack the odt file and add the file content.xml to the

- The same file is committed to the repository, the unpacked content.xml
should be committed too.

- Story repeats itself for svn commands like copy, move, update and revert

I thought of using a keyword for this, that informs the svn client(s) that
this synchronization has to happen. Something like:

*.odt = svn:unpack = content.xml
*.odt = svn:unpack = content.xml,meta.xml
*.odt = svn:unpack = *

Due to the introduction of the keyword unpack and the assignment of which
files are to be unpacked the method becomes quite general and can most likely
be used for other odf family files, like master-documents (.odm), etc and it
can maybe be used for e.g. java archives (.jar) as well. I don't know if it
is really useful for the latter though.

The unpacked files could be stored in sub directory that is called after the
document, in a directory that is for example named unpacked.

Would something like this be possible, either using shell scripts (on linux)
or even better with an extension to the currently available clients
like 'svn' and TortoiseSVN? It won't be trivial, but as odf files are
hopefully becoming the standard, it would be a very valuable addition to

Richard Bos
We are borrowing the world of our children,
It is not inherited from our parents.
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon May 21 23:42:08 2007

This is an archived mail posted to the Subversion Users mailing list.

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