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

r3607:f4c9bb4a default
r4131:1ca664c9 default
Show More
test-issue352
21 lines | 281 B | text/plain | TextLexer
#!/bin/bash
# http://www.selenic.com/mercurial/bts/issue352
hg init foo
cd foo
A=`echo -e -n 'he\rllo'`
echo foo > "hell
o"
echo foo > "$A"
hg add
hg ci -A -m m
rm "$A"
ls
hg add
# BUG ? we don't walk on filenames with '\n' (regexp related) ?
hg debugwalk
hg ci -A -m m
exit 0