| Index: tools/compare_codereview.py
|
| diff --git a/tools/compare_codereview.py b/tools/compare_codereview.py
|
| index 16f3a0198d9e12647072ab3b3e96c8e8d9e566a9..ae2909611e4d5f0c142f422b64372d81f79c42e2 100755
|
| --- a/tools/compare_codereview.py
|
| +++ b/tools/compare_codereview.py
|
| @@ -325,12 +325,15 @@ def main(control_url, roll_url, verbosity=1):
|
| # pylint: disable=I0011,R0914,R0912
|
| control = CodeReviewHTMLParser.parse(control_url)
|
| roll = CodeReviewHTMLParser.parse(roll_url)
|
| - if not (control and roll):
|
| + all_bots = set(control) & set(roll) # Set intersection.
|
| + if not all_bots:
|
| + print >> sys.stderr, (
|
| + 'Error: control %s and roll %s have no common trybots.'
|
| + % (list(control), list(roll)))
|
| return
|
|
|
| control_name = '[control %s]' % control_url.split('/')[-1]
|
| roll_name = '[roll %s]' % roll_url.split('/')[-1]
|
| - all_bots = set(control) & set(roll) # Set intersection.
|
|
|
| out = sys.stdout
|
| if verbosity > 0:
|
|
|