bisect-runner.pl should only dump out a failed patch once by default.
authorNicholas Clark <nick@ccl4.org>
Sat, 17 Dec 2011 08:25:32 +0000 (09:25 +0100)
committerNicholas Clark <nick@ccl4.org>
Sat, 17 Dec 2011 08:25:32 +0000 (09:25 +0100)
Only show the "converted to a context diff" version if it was actually
converted to one before (attempted) application.

Porting/bisect-runner.pl

index 45667fb..28db89e 100755 (executable)
@@ -678,7 +678,8 @@ sub apply_patch {
     print $fh $patch_to_use;
     return if close $fh;
     print STDERR "Patch is <<'EOPATCH'\n${patch}EOPATCH\n";
-    print STDERR "\nConverted to a context diff <<'EOCONTEXT'\n${patch_to_use}EOCONTEXT\n";
+    print STDERR "\nConverted to a context diff <<'EOCONTEXT'\n${patch_to_use}EOCONTEXT\n"
+        if $patch_to_use ne $patch;
     die "Can't $what$files: $?, $!";
 }