Mercurial > hg
view tests/test-mq-qimport.out @ 10189:e451e599fbcf
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.
author | Patrick Mezard <pmezard@gmail.com> |
---|---|
date | Fri, 01 Jan 2010 20:54:05 +0100 |
parents | 9a69ab6d7cf7 |
children | c7dbd6c4877a |
line wrap: on
line source
% qimport non-existing-file abort: unable to read non-existing-file % import email adding email to series file applying email now at: email % hg tip -v changeset: 0:1a706973a7d8 tag: qtip tag: tip tag: email tag: qbase user: Username in patch <test@example.net> date: Thu Jan 01 00:00:00 1970 +0000 files: x description: First line of commit message. More text in commit message. popping email patch queue now empty % import URL adding url.diff to series file url.diff % import patch that already exists abort: patch "url.diff" already exists applying url.diff now at: url.diff foo popping url.diff patch queue now empty % qimport -f adding url.diff to series file applying url.diff now at: url.diff foo2 popping url.diff patch queue now empty % build diff with CRLF adding b 1 files updated, 0 files merged, 0 files removed, 0 files unresolved % qimport CRLF diff adding b.diff to series file applying b.diff now at: b.diff % try to import --push 1 files updated, 0 files merged, 0 files removed, 0 files unresolved adding another.diff to series file applying another.diff now at: another.diff patch b.diff finalized without changeset message patch another.diff finalized without changeset message