Custom Delta
Mads Kiilerich
mads at kiilerich.com
Wed Apr 25 19:21:33 UTC 2012
josericardo.jr wrote, On 04/25/2012 07:29 PM:
> Hello,
>
> I'm developing a custom tool that is able to calculate the diff and merge
> operation of my custom binary file. This way, for example, if I have my
> original A file and modify it generating B, I only need to apply my tool in
> order to find its difference. This way, I would like to store only my custom
> delta that represents the modification from A to B, allowing me to
> reconstruct B from A using my custom tool and this custom delta.
>
> Does anyone knows if is it possible to do using mercurial?
It is not clear how that should be used in a version control setup. You
might be able to create a custom delta, but something would have to
apply that delta too.
You could probably organize your custom tool in such a way that the
binary file was generated by your build system and custom tool from a
version controlled source file. The most naïve approach would be to
simply store a chain of deltas in a 'source' file.
You could perhaps also use decode/encode filters (see the hgrc man
page). That functionality is however rarely used and might have some
rough corners.
Other relevant information can perhaps be found in 'hg help extdiff' and
'hg help merge-tools'.
/Mads
More information about the Mercurial
mailing list