in gui/mozregui/bisection.py [0:0]
def bisection_finished(self, bisection, resultcode):
dialog = None
if resultcode == Bisection.USER_EXIT:
msg = "Bisection stopped."
elif resultcode == Bisection.NO_DATA:
msg = "Unable to find enough data to bisect."
dialog = QMessageBox.warning
elif resultcode == Bisection.EXCEPTION:
msg = "Error: %s" % self.worker.error[1]
dialog = QMessageBox.critical
else:
fetch_config = self.worker.fetch_config
if fetch_config.can_go_integration() and not getattr(bisection, "no_more_merge", False):
if isinstance(bisection.handler, NightlyHandler):
handler = bisection.handler
fetch_config.set_repo(fetch_config.get_nightly_repo(handler.bad_date))
QTimer.singleShot(0, self.worker.bisect_further)
else:
# check merge, try to bisect further
QTimer.singleShot(0, self.worker.check_merge)
return
msg = "The bisection is done."
if dialog:
dialog(self.mainwindow, "End of the bisection", msg)
else:
log(msg)
self.stop()