##// END OF EJS Templates
don't return uninitialized memory from bdiff.blocks()...
don't return uninitialized memory from bdiff.blocks() bdiff.blocks() returns a dummy match at the end of both files; the length of that chunk is never set, so it will sometimes contain random heap garbage. There are apparently workarounds for this elsewhere: # bdiff sometimes gives huge matches past eof, this check eats them,

File last commit:

r3199:096f1c73 default
r4131:1ca664c9 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 .