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

r3825:000d1220 default
r4131:1ca664c9 default
Show More
test-diffdir.out
22 lines | 316 B | text/plain | TextLexer
Thomas Arendsen Hein
Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero....
r1933 diff -r acd8075edac9 b
mpm@selenic.com
Refactor diffrevs/diffdir into changes...
r536 --- /dev/null
+++ b/b
@@ -0,0 +1,1 @@
+123
Thomas Arendsen Hein
Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero....
r1933 diff -r acd8075edac9 b
mpm@selenic.com
Refactor diffrevs/diffdir into changes...
r536 --- /dev/null
+++ b/b
@@ -0,0 +1,1 @@
+123
Thomas Arendsen Hein
Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero....
r1933 diff -r acd8075edac9 a
Thomas Arendsen Hein
Fix diff against an empty file (issue124) and add a test for this.
r1723 --- a/a
+++ b/a
@@ -0,0 +1,1 @@
+foo
Thomas Arendsen Hein
Use 'hg ci -d "1000000 0"' in tests to circumvent problem with leading zero....
r1933 diff -r acd8075edac9 b
Thomas Arendsen Hein
Fix diff against an empty file (issue124) and add a test for this.
r1723 --- /dev/null
+++ b/b
@@ -0,0 +1,1 @@
+123
Alexis S. L. Carvalho
fix hg diff -r ''
r3825 abort: Ambiguous identifier!
abort: Ambiguous identifier!