OpenDocument files in hg?
Thomas Arendsen Hein
thomas at intevation.de
Wed Sep 6 07:02:28 UTC 2006
* Frank Kingswood <frank at kingswood-consulting.co.uk> [20060714 17:43]:
> As you may know, an OpenDocument file (*.odt, for example) is really a zip archive with a bunch of mostly
> XML files in it. To improve the diffability and mergeability of these files in hg, I would like to store
> them unzipped in the hg repository.
>
> The .hgrc [encode] and [decode] options only seem to provide functionality to convert one file into
> another, but for these documents a conversion is required from a single file into a directory of the same
> name with files in it.
I thought about the same and unzipping into a directory would be the
best I can imagine, too. But you're right, this is not supported by
encode/decode.
Stefan Monnier suggested converting to a .tar file and I had the
same idea. This way you get diffability for most content. A similar
approach would be to convert everything to a single rfc822 file with
mime attachments for the contents of the original zip.
Thomas
--
Email: thomas at intevation.de
http://intevation.de/~thomas/
More information about the Mercurial
mailing list