##// END OF EJS Templates
patch: support diff data loss detection and upgrade...
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.

File last commit:

r9598:a981ddb1 merge default
r10189:e451e599 default
Show More
test-mq-symlinks.out
31 lines | 575 B | text/plain | TextLexer
/ tests / test-mq-symlinks.out
Bryan O'Sullivan
mq: teach qpop about symlinks
r5157 a -> a not a symlink
Patrick Mezard
patch: handle symlinks without symlinkhunk...
r9585 % test replacing a file with a symlink
Bryan O'Sullivan
mq: teach qpop about symlinks
r5157 a -> b
Mads Kiilerich
mq: qpop now tells which patches are popped...
r9110 popping symlink.patch
Martin Geisler
mq: lowercase output...
r7627 now at: base.patch
Bryan O'Sullivan
mq: teach qpop about symlinks
r5157 applying symlink.patch
Martin Geisler
mq: lowercase output...
r7627 now at: symlink.patch
Bryan O'Sullivan
mq: teach qpop about symlinks
r5157 a -> b
Patrick Mezard
patch: handle symlink updates/replacements (issue1785)
r9586 % test updating a symlink
a -> c
Patrick Mezard
Merge with crew-stable
r9598 popping updatelink
Patrick Mezard
patch: handle symlink updates/replacements (issue1785)
r9586 now at: symlink.patch
applying updatelink
patching file a
a
now at: updatelink
a -> c
% test replacing a symlink with a file
Patrick Mezard
Merge with crew-stable
r9598 popping replacelinkwithfile
Patrick Mezard
patch: handle symlink updates/replacements (issue1785)
r9586 now at: addlink
applying replacelinkwithfile
now at: replacelinkwithfile
sss
Patrick Mezard
patch: handle symlinks without symlinkhunk...
r9585 % test symlink removal
Mads Kiilerich
mq: qpop now tells which patches are popped...
r9110 popping removesl.patch
Patrick Mezard
patch: handle symlink updates/replacements (issue1785)
r9586 now at: replacelinkwithfile
Brendan Cully
patch: handle git patches that remove symlinks (issue1438)
r7517 applying removesl.patch
Martin Geisler
mq: lowercase output...
r7627 now at: removesl.patch
Brendan Cully
patch: handle git patches that remove symlinks (issue1438)
r7517 C b
Patrick Mezard
patch: handle symlink updates/replacements (issue1785)
r9586 C c
C s