Re: diff algorithm: matching similar lines

Guillaume Hoffmann <[email protected]>
Newsgroups gmane.comp.version-control.darcs.user
Message-ID <CADw8UJqztfjqmX9dPy9YcvX4xgYpu4DxovnrvoUKYHn=288L3w@mail.gmail.com>
Hi Henning,

You are right saying that Darcs matches exactly equal lines.

I'm afraid that what you are proposing is not possible with Darcs'
current internal representation of patches. Darcs handles patches in a
line-based way. So the problem is worse than computationnal cost.

But a future and incompatible version of Darcs could support
indentation patch type. Indeed the code of Darcs currently works with
a current set of patch types but can adapt to another one at the
expense of breaking compatibility with existing repositories. There
have been a few proposals about new patch types but for now no
concrete roadmap for a switch.

Guillaume
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.