summaryrefslogtreecommitdiff
path: root/Tools/Scripts/bisect-builds
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@digia.com>2013-09-13 12:51:20 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-09-19 20:50:05 +0200
commitd441d6f39bb846989d95bcf5caf387b42414718d (patch)
treee367e64a75991c554930278175d403c072de6bb8 /Tools/Scripts/bisect-builds
parent0060b2994c07842f4c59de64b5e3e430525c4b90 (diff)
downloadqtwebkit-d441d6f39bb846989d95bcf5caf387b42414718d.tar.gz
Import Qt5x2 branch of QtWebkit for Qt 5.2
Importing a new snapshot of webkit. Change-Id: I2d01ad12cdc8af8cb015387641120a9d7ea5f10c Reviewed-by: Allan Sandfeld Jensen <allan.jensen@digia.com>
Diffstat (limited to 'Tools/Scripts/bisect-builds')
-rwxr-xr-xTools/Scripts/bisect-builds10
1 files changed, 8 insertions, 2 deletions
diff --git a/Tools/Scripts/bisect-builds b/Tools/Scripts/bisect-builds
index b970db399..301d9fd85 100755
--- a/Tools/Scripts/bisect-builds
+++ b/Tools/Scripts/bisect-builds
@@ -1,6 +1,6 @@
#!/usr/bin/perl -w
-# Copyright (C) 2007, 2008, 2011 Apple Inc. All rights reserved.
+# Copyright (C) 2007, 2008, 2009, 2011, 2012, 2013 Apple Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
@@ -187,7 +187,13 @@ while (abs($endIndex - $startIndex) > 1) {
$brokenRevisions{$nightlies[$index]->{rev}} = $nightlies[$index]->{file};
delete $nightlies[$index];
$endIndex--;
- $index = $startIndex + int(($endIndex - $startIndex) / 2);
+ if (scalar(keys %brokenRevisions) % 2 == 0) {
+ # Even tries to bisect to the left
+ $index = int(($startIndex + $index) / 2);
+ } else {
+ # Odd tries to bisect to the right
+ $index = int(($index + $endIndex) / 2);
+ }
}
} while ($didReproduceBug < 0);