P
P
Pavel2014-07-09 16:58:31
opendocument
Pavel, 2014-07-09 16:58:31

What is a plugin for storing odt files in Mercurial as text data and not as binary data?

Goal: store text documents in odt format in the mercurial repository as text, not binary files.
Formally, you can store any data, but odt is a compressed zip archive with various xml 's.
Therefore, in mercurial the repository will be greatly " inflated " ...
You can independently carry out the operation:
1) rename *.odt to *.zip , unpack it into the *_odt folder and put it in the repository.
2) because the folder contains subfolders with xml's, which is a text format, then each revision will not take up much space.
3) for pull again, manually download the *_odt folder, compress it into zip, change it to odt
Question:
Is there already a plugin for LibreOffice or mercurial that automatically does the above actions?
Or :
Is there any way to do "preprocessing" in mercurial on commits, pulls and pushes? (Then write a banal bash script - how to send two bytes.)
PS
The mercurial repository cannot be changed - the story is long ... In short - the requirement of the authorities.
PS2.
I'm a lamer in mercurial, so I apologize if my question is elementary :))

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
ostapbender, 2014-07-09
@PavelMSTU

zipdoc

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question