You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Arne Christian Hårseth <ar...@online.no> on 2002/09/05 21:11:47 UTC
Versioning of archive files (Open Office files)
Hi!
Is it possible to not handle archive files (like zip files) like binary
files? These files may contain text files which can be versioned ordinarily
so theoretically it should be no problem for cvs/subversion to open the
archive diff it, save it and the archive it again when checked out again?
This could ie. be usefull for versioning OpenOffice files which are a
package of xml-files saved in an archive file.
I suppose this could be a big advantage to OpenOffice if these file could be
versioned like text file so that you can see what is changed and not only
the fact that is has beed changed (as with binary files).
Arne
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: Versioning of archive files (Open Office files)
Posted by Gustavo Niemeyer <ni...@conectiva.com>.
> > Is it possible to not handle archive files (like zip files) like binary
> > files?
>
> When transmitting files over a network, or storing files in the
> repository, Subversion treats *all* files like binary files. It uses
> a binary diffing algorithm to transmit and store binary differences.
>
> In the working copy, however, you can tell Subversion to treat a file
> as binary or text by setting a metadata property. Only the working
> copy has a notion of "text" vs. "binary" -- and this property
> determines whether or not contextual merges are attempted during
> updates, that's it.
I think he's looking for some kind of client-hook which uncompressed the
archive and did some operations on them. Something between merge-hooks
and client-read/write-sentinels. :-)
I'm not sure if such beast would be useful for diffing purposes, as
stated in his email, but there's a small advantage in storing those
files uncompressed, since diffing compressed data don't work very well.
OTOH, something like that would obligate everyone working with this data
to have the same client-side hooks, so this could be a task to a svn
wrapper.
--
Gustavo Niemeyer
[ 2AAC 7928 0FBF 0299 5EB5 60E2 2253 B29A 6664 3A0C ]
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: Versioning of archive files (Open Office files)
Posted by Ben Collins-Sussman <su...@collab.net>.
Arne Christian Hårseth <ar...@online.no> writes:
> Is it possible to not handle archive files (like zip files) like binary
> files?
When transmitting files over a network, or storing files in the
repository, Subversion treats *all* files like binary files. It uses
a binary diffing algorithm to transmit and store binary differences.
In the working copy, however, you can tell Subversion to treat a file
as binary or text by setting a metadata property. Only the working
copy has a notion of "text" vs. "binary" -- and this property
determines whether or not contextual merges are attempted during
updates, that's it.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org