[PATCH 1 of 2] patch: support diff data loss detection and upgrade

Patrick Mézard pmezard at gmail.com
Fri Jan 1 15:31:47 CST 2010


Le 30/12/09 18:38, Patrick Mezard a écrit :
> # HG changeset patch
> # User Patrick Mezard <pmezard at gmail.com>
> # Date 1262194535 -3600
> # Node ID 81c70639660b227332226cf2679e5c4f698fb486
> # Parent  c31ac3f7fd8f83ff728bfda18e2d0a5276f2bff8
> patch: support diff data loss detection and upgrade
> 
> In worst case, generating diff in upgrade mode can be two times more expensive
> than generating it in git mode directly: we may have to regenerate the whole
> diff again whenever a git feature is detected. Also, the first diff attempt is
> completely buffered instead of being streamed. That said, even without having
> profiled it yet, I am convinced we can fast-path the upgrade mode if necessary
> were it to be used in regular diff commands, and not only in mq where avoiding
> data loss is worth the price.

Modified version in crew: http://hg.intevation.org/mercurial/crew/rev/9c2c94934f0d

--
Patrick Mézard


More information about the Mercurial-devel mailing list