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

Matt Mackall mpm at selenic.com
Thu Dec 31 14:28:12 CST 2009


On Thu, 2009-12-31 at 10:12 +0100, Patrick Mézard wrote:
> 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.
> 
> Matt, does it look like what you expected?

Close enough, thanks.

-- 
http://selenic.com : development and support for Mercurial and Linux




More information about the Mercurial-devel mailing list