##// 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:

r3199:096f1c73 default
r10189:e451e599 default
Show More
test-diff-subdir
24 lines | 291 B | text/plain | TextLexer
Giorgos Keramidas
tests: new test for hg diff of a subdirectory only
r2879 #!/bin/sh
hg init
mkdir alpha
touch alpha/one
mkdir beta
touch beta/two
hg add alpha/one beta/two
hg ci -m "start" -d "1000000 0"
echo 1 > alpha/one
echo 2 > beta/two
echo EVERYTHING
Stephen Darnell
Add -D/--nodates options to hg diff/export that removes dates from diff headers...
r3199 hg diff --nodates
Giorgos Keramidas
tests: new test for hg diff of a subdirectory only
r2879
echo BETA ONLY
Stephen Darnell
Add -D/--nodates options to hg diff/export that removes dates from diff headers...
r3199 hg diff --nodates beta
Giorgos Keramidas
tests: new test for hg diff of a subdirectory only
r2879
echo INSIDE BETA
cd beta
Stephen Darnell
Add -D/--nodates options to hg diff/export that removes dates from diff headers...
r3199 hg diff --nodates .