evan@chromium.org | 5684aaf | 2010-10-09 02:21:38 +0900 | [diff] [blame] | 1 | #!/usr/bin/python |
maruel@chromium.org | 07e92d5 | 2010-05-26 20:31:26 +0900 | [diff] [blame] | 2 | # Copyright (c) 2010 The Chromium Authors. All rights reserved. |
rsesek@chromium.org | e0c13e8 | 2009-09-04 07:06:09 +0900 | [diff] [blame] | 3 | # Use of this source code is governed by a BSD-style license that can be |
| 4 | # found in the LICENSE file. |
| 5 | |
| 6 | """Snapshot Build Bisect Tool |
| 7 | |
mmoss@chromium.org | af003b8 | 2009-09-05 02:52:33 +0900 | [diff] [blame] | 8 | This script bisects a snapshot archive using binary search. It starts at |
rsesek@chromium.org | e0c13e8 | 2009-09-04 07:06:09 +0900 | [diff] [blame] | 9 | a bad revision (it will try to guess HEAD) and asks for a last known-good |
| 10 | revision. It will then binary search across this revision range by downloading, |
| 11 | unzipping, and opening Chromium for you. After testing the specific revision, |
| 12 | it will ask you whether it is good or bad before continuing the search. |
rsesek@chromium.org | e0c13e8 | 2009-09-04 07:06:09 +0900 | [diff] [blame] | 13 | """ |
| 14 | |
| 15 | # Base URL to download snapshots from. |
nirnimesh@chromium.org | d881c10 | 2010-03-31 10:05:24 +0900 | [diff] [blame] | 16 | BUILD_BASE_URL = 'http://build.chromium.org/buildbot/snapshots/' |
rsesek@chromium.org | e0c13e8 | 2009-09-04 07:06:09 +0900 | [diff] [blame] | 17 | |
mmoss@chromium.org | af003b8 | 2009-09-05 02:52:33 +0900 | [diff] [blame] | 18 | # The type (platform) of the build archive. This is what's passed in to the |
| 19 | # '-a/--archive' option. |
| 20 | BUILD_ARCHIVE_TYPE = '' |
| 21 | |
| 22 | # The selected archive to bisect. |
| 23 | BUILD_ARCHIVE_DIR = '' |
rsesek@chromium.org | e0c13e8 | 2009-09-04 07:06:09 +0900 | [diff] [blame] | 24 | |
| 25 | # The location of the builds. |
nirnimesh@chromium.org | d881c10 | 2010-03-31 10:05:24 +0900 | [diff] [blame] | 26 | BUILD_ARCHIVE_URL = '/%d/' |
rsesek@chromium.org | e0c13e8 | 2009-09-04 07:06:09 +0900 | [diff] [blame] | 27 | |
| 28 | # Name of the build archive. |
mmoss@chromium.org | af003b8 | 2009-09-05 02:52:33 +0900 | [diff] [blame] | 29 | BUILD_ZIP_NAME = '' |
rsesek@chromium.org | e0c13e8 | 2009-09-04 07:06:09 +0900 | [diff] [blame] | 30 | |
| 31 | # Directory name inside the archive. |
mmoss@chromium.org | af003b8 | 2009-09-05 02:52:33 +0900 | [diff] [blame] | 32 | BUILD_DIR_NAME = '' |
rsesek@chromium.org | e0c13e8 | 2009-09-04 07:06:09 +0900 | [diff] [blame] | 33 | |
| 34 | # Name of the executable. |
mmoss@chromium.org | af003b8 | 2009-09-05 02:52:33 +0900 | [diff] [blame] | 35 | BUILD_EXE_NAME = '' |
rsesek@chromium.org | e0c13e8 | 2009-09-04 07:06:09 +0900 | [diff] [blame] | 36 | |
| 37 | # URL to the ViewVC commit page. |
nirnimesh@chromium.org | d881c10 | 2010-03-31 10:05:24 +0900 | [diff] [blame] | 38 | BUILD_VIEWVC_URL = 'http://src.chromium.org/viewvc/chrome?view=rev&revision=%d' |
rsesek@chromium.org | e0c13e8 | 2009-09-04 07:06:09 +0900 | [diff] [blame] | 39 | |
nirnimesh@chromium.org | c2fedbd | 2009-10-09 04:55:38 +0900 | [diff] [blame] | 40 | # Changelogs URL |
nirnimesh@chromium.org | d881c10 | 2010-03-31 10:05:24 +0900 | [diff] [blame] | 41 | CHANGELOG_URL = 'http://build.chromium.org/buildbot/' \ |
| 42 | 'perf/dashboard/ui/changelog.html?url=/trunk/src&range=%d:%d' |
nirnimesh@chromium.org | c2fedbd | 2009-10-09 04:55:38 +0900 | [diff] [blame] | 43 | |
rsesek@chromium.org | e0c13e8 | 2009-09-04 07:06:09 +0900 | [diff] [blame] | 44 | ############################################################################### |
| 45 | |
| 46 | import math |
mmoss@chromium.org | af003b8 | 2009-09-05 02:52:33 +0900 | [diff] [blame] | 47 | import optparse |
rsesek@chromium.org | e0c13e8 | 2009-09-04 07:06:09 +0900 | [diff] [blame] | 48 | import os |
rsesek@chromium.org | e92f0f2 | 2009-09-20 09:56:38 +0900 | [diff] [blame] | 49 | import pipes |
rsesek@chromium.org | e0c13e8 | 2009-09-04 07:06:09 +0900 | [diff] [blame] | 50 | import re |
| 51 | import shutil |
| 52 | import sys |
mmoss@chromium.org | af003b8 | 2009-09-05 02:52:33 +0900 | [diff] [blame] | 53 | import tempfile |
rsesek@chromium.org | e0c13e8 | 2009-09-04 07:06:09 +0900 | [diff] [blame] | 54 | import urllib |
nirnimesh@chromium.org | d881c10 | 2010-03-31 10:05:24 +0900 | [diff] [blame] | 55 | import zipfile |
| 56 | |
| 57 | |
| 58 | def UnzipFilenameToDir(filename, dir): |
| 59 | """Unzip |filename| to directory |dir|.""" |
| 60 | zf = zipfile.ZipFile(filename) |
| 61 | # Make base. |
| 62 | pushd = os.getcwd() |
| 63 | try: |
| 64 | if not os.path.isdir(dir): |
| 65 | os.mkdir(dir) |
| 66 | os.chdir(dir) |
| 67 | # Extract files. |
| 68 | for info in zf.infolist(): |
| 69 | name = info.filename |
| 70 | if name.endswith('/'): # dir |
| 71 | if not os.path.isdir(name): |
| 72 | os.makedirs(name) |
| 73 | else: # file |
| 74 | dir = os.path.dirname(name) |
| 75 | if not os.path.isdir(dir): |
| 76 | os.makedirs(dir) |
| 77 | out = open(name, 'wb') |
| 78 | out.write(zf.read(name)) |
| 79 | out.close() |
| 80 | # Set permissions. Permission info in external_attr is shifted 16 bits. |
| 81 | os.chmod(name, info.external_attr >> 16L) |
| 82 | os.chdir(pushd) |
| 83 | except Exception, e: |
| 84 | print >>sys.stderr, e |
| 85 | sys.exit(1) |
| 86 | |
rsesek@chromium.org | e0c13e8 | 2009-09-04 07:06:09 +0900 | [diff] [blame] | 87 | |
mmoss@chromium.org | af003b8 | 2009-09-05 02:52:33 +0900 | [diff] [blame] | 88 | def SetArchiveVars(archive): |
| 89 | """Set a bunch of global variables appropriate for the specified archive.""" |
| 90 | global BUILD_ARCHIVE_TYPE |
| 91 | global BUILD_ARCHIVE_DIR |
| 92 | global BUILD_ZIP_NAME |
| 93 | global BUILD_DIR_NAME |
| 94 | global BUILD_EXE_NAME |
| 95 | global BUILD_BASE_URL |
| 96 | |
| 97 | BUILD_ARCHIVE_TYPE = archive |
| 98 | BUILD_ARCHIVE_DIR = 'chromium-rel-' + BUILD_ARCHIVE_TYPE |
| 99 | |
sky@chromium.org | 8b1461b | 2010-09-09 23:14:20 +0900 | [diff] [blame] | 100 | if BUILD_ARCHIVE_TYPE in ('linux', 'linux-64', 'linux-chromiumos'): |
mmoss@chromium.org | af003b8 | 2009-09-05 02:52:33 +0900 | [diff] [blame] | 101 | BUILD_ZIP_NAME = 'chrome-linux.zip' |
| 102 | BUILD_DIR_NAME = 'chrome-linux' |
nirnimesh@chromium.org | d881c10 | 2010-03-31 10:05:24 +0900 | [diff] [blame] | 103 | BUILD_EXE_NAME = 'chrome' |
mmoss@chromium.org | af003b8 | 2009-09-05 02:52:33 +0900 | [diff] [blame] | 104 | elif BUILD_ARCHIVE_TYPE in ('mac'): |
| 105 | BUILD_ZIP_NAME = 'chrome-mac.zip' |
| 106 | BUILD_DIR_NAME = 'chrome-mac' |
nirnimesh@chromium.org | d881c10 | 2010-03-31 10:05:24 +0900 | [diff] [blame] | 107 | BUILD_EXE_NAME = 'Chromium.app/Contents/MacOS/Chromium' |
mmoss@chromium.org | af003b8 | 2009-09-05 02:52:33 +0900 | [diff] [blame] | 108 | elif BUILD_ARCHIVE_TYPE in ('xp'): |
| 109 | BUILD_ZIP_NAME = 'chrome-win32.zip' |
| 110 | BUILD_DIR_NAME = 'chrome-win32' |
nirnimesh@chromium.org | d881c10 | 2010-03-31 10:05:24 +0900 | [diff] [blame] | 111 | BUILD_EXE_NAME = 'chrome.exe' |
mmoss@chromium.org | af003b8 | 2009-09-05 02:52:33 +0900 | [diff] [blame] | 112 | |
| 113 | BUILD_BASE_URL += BUILD_ARCHIVE_DIR |
| 114 | |
rsesek@chromium.org | e0c13e8 | 2009-09-04 07:06:09 +0900 | [diff] [blame] | 115 | def ParseDirectoryIndex(url): |
| 116 | """Parses the HTML directory listing into a list of revision numbers.""" |
| 117 | handle = urllib.urlopen(url) |
| 118 | dirindex = handle.read() |
| 119 | handle.close() |
| 120 | return re.findall(r'<a href="([0-9]*)/">\1/</a>', dirindex) |
| 121 | |
| 122 | def GetRevList(good, bad): |
| 123 | """Gets the list of revision numbers between |good| and |bad|.""" |
| 124 | # Download the main revlist. |
| 125 | revlist = ParseDirectoryIndex(BUILD_BASE_URL) |
| 126 | revlist = map(int, revlist) |
| 127 | revlist = filter(lambda r: range(good, bad).__contains__(int(r)), revlist) |
| 128 | revlist.sort() |
| 129 | return revlist |
| 130 | |
nirnimesh@chromium.org | c2fedbd | 2009-10-09 04:55:38 +0900 | [diff] [blame] | 131 | def TryRevision(rev, profile, args): |
rsesek@chromium.org | e92f0f2 | 2009-09-20 09:56:38 +0900 | [diff] [blame] | 132 | """Downloads revision |rev|, unzips it, and opens it for the user to test. |
| 133 | |profile| is the profile to use.""" |
mmoss@chromium.org | af003b8 | 2009-09-05 02:52:33 +0900 | [diff] [blame] | 134 | # Do this in a temp dir so we don't collide with user files. |
| 135 | cwd = os.getcwd() |
| 136 | tempdir = tempfile.mkdtemp(prefix='bisect_tmp') |
| 137 | os.chdir(tempdir) |
rsesek@chromium.org | e0c13e8 | 2009-09-04 07:06:09 +0900 | [diff] [blame] | 138 | |
| 139 | # Download the file. |
| 140 | download_url = BUILD_BASE_URL + (BUILD_ARCHIVE_URL % rev) + BUILD_ZIP_NAME |
| 141 | try: |
mmoss@chromium.org | af003b8 | 2009-09-05 02:52:33 +0900 | [diff] [blame] | 142 | print 'Fetching ' + download_url |
rsesek@chromium.org | e0c13e8 | 2009-09-04 07:06:09 +0900 | [diff] [blame] | 143 | urllib.urlretrieve(download_url, BUILD_ZIP_NAME) |
| 144 | except Exception, e: |
nirnimesh@chromium.org | d881c10 | 2010-03-31 10:05:24 +0900 | [diff] [blame] | 145 | print('Could not retrieve the download. Sorry.') |
rsesek@chromium.org | e0c13e8 | 2009-09-04 07:06:09 +0900 | [diff] [blame] | 146 | sys.exit(-1) |
| 147 | |
| 148 | # Unzip the file. |
nirnimesh@chromium.org | d881c10 | 2010-03-31 10:05:24 +0900 | [diff] [blame] | 149 | print 'Unziping ...' |
| 150 | UnzipFilenameToDir(BUILD_ZIP_NAME, os.curdir) |
rsesek@chromium.org | e0c13e8 | 2009-09-04 07:06:09 +0900 | [diff] [blame] | 151 | |
mmoss@chromium.org | af003b8 | 2009-09-05 02:52:33 +0900 | [diff] [blame] | 152 | # Tell the system to open the app. |
nirnimesh@chromium.org | c2fedbd | 2009-10-09 04:55:38 +0900 | [diff] [blame] | 153 | args = ['--user-data-dir=%s' % profile] + args |
| 154 | flags = ' '.join(map(pipes.quote, args)) |
nirnimesh@chromium.org | d881c10 | 2010-03-31 10:05:24 +0900 | [diff] [blame] | 155 | exe = os.path.join(os.getcwd(), BUILD_DIR_NAME, BUILD_EXE_NAME) |
| 156 | cmd = '%s %s' % (exe, flags) |
| 157 | print 'Running %s' % cmd |
| 158 | os.system(cmd) |
mmoss@chromium.org | af003b8 | 2009-09-05 02:52:33 +0900 | [diff] [blame] | 159 | |
| 160 | os.chdir(cwd) |
| 161 | print 'Cleaning temp dir ...' |
| 162 | try: |
| 163 | shutil.rmtree(tempdir, True) |
| 164 | except Exception, e: |
| 165 | pass |
rsesek@chromium.org | e0c13e8 | 2009-09-04 07:06:09 +0900 | [diff] [blame] | 166 | |
evan@chromium.org | 6d58347 | 2010-03-10 10:01:57 +0900 | [diff] [blame] | 167 | |
rsesek@chromium.org | e0c13e8 | 2009-09-04 07:06:09 +0900 | [diff] [blame] | 168 | def AskIsGoodBuild(rev): |
evan@chromium.org | 6d58347 | 2010-03-10 10:01:57 +0900 | [diff] [blame] | 169 | """Ask the user whether build |rev| is good or bad.""" |
| 170 | # Loop until we get a response that we can parse. |
rsesek@chromium.org | e0c13e8 | 2009-09-04 07:06:09 +0900 | [diff] [blame] | 171 | while True: |
nirnimesh@chromium.org | d881c10 | 2010-03-31 10:05:24 +0900 | [diff] [blame] | 172 | response = raw_input('\nBuild %d is [(g)ood/(b)ad]: ' % int(rev)) |
| 173 | if response and response in ('g', 'b'): |
| 174 | return response == 'g' |
rsesek@chromium.org | e0c13e8 | 2009-09-04 07:06:09 +0900 | [diff] [blame] | 175 | |
| 176 | def main(): |
nirnimesh@chromium.org | 670699b | 2009-10-30 04:52:17 +0900 | [diff] [blame] | 177 | usage = ('%prog [options] [-- chromium-options]\n' |
evan@chromium.org | 5684aaf | 2010-10-09 02:21:38 +0900 | [diff] [blame] | 178 | 'Perform binary search on the snapshot builds.\n' |
| 179 | '\n' |
| 180 | 'Tip: add "-- --no-first-run" to bypass the first run prompts.') |
mmoss@chromium.org | af003b8 | 2009-09-05 02:52:33 +0900 | [diff] [blame] | 181 | parser = optparse.OptionParser(usage=usage) |
evan@chromium.org | cfce4c9 | 2009-09-19 10:58:57 +0900 | [diff] [blame] | 182 | # Strangely, the default help output doesn't include the choice list. |
sky@chromium.org | 8b1461b | 2010-09-09 23:14:20 +0900 | [diff] [blame] | 183 | choices = ['mac', 'xp', 'linux', 'linux-64', 'linux-chromiumos'] |
mmoss@chromium.org | af003b8 | 2009-09-05 02:52:33 +0900 | [diff] [blame] | 184 | parser.add_option('-a', '--archive', |
evan@chromium.org | cfce4c9 | 2009-09-19 10:58:57 +0900 | [diff] [blame] | 185 | choices = choices, |
| 186 | help = 'The buildbot archive to bisect [%s].' % |
| 187 | '|'.join(choices)) |
mmoss@chromium.org | af003b8 | 2009-09-05 02:52:33 +0900 | [diff] [blame] | 188 | parser.add_option('-b', '--bad', type = 'int', |
| 189 | help = 'The bad revision to bisect to.') |
| 190 | parser.add_option('-g', '--good', type = 'int', |
| 191 | help = 'The last known good revision to bisect from.') |
rsesek@chromium.org | e92f0f2 | 2009-09-20 09:56:38 +0900 | [diff] [blame] | 192 | parser.add_option('-p', '--profile', '--user-data-dir', type = 'str', |
| 193 | help = 'Profile to use; this will not reset every run. ' + |
| 194 | 'Defaults to a clean profile.') |
mmoss@chromium.org | af003b8 | 2009-09-05 02:52:33 +0900 | [diff] [blame] | 195 | (opts, args) = parser.parse_args() |
| 196 | |
| 197 | if opts.archive is None: |
evan@chromium.org | 5684aaf | 2010-10-09 02:21:38 +0900 | [diff] [blame] | 198 | print 'Error: missing required parameter: --archive' |
| 199 | print |
mmoss@chromium.org | af003b8 | 2009-09-05 02:52:33 +0900 | [diff] [blame] | 200 | parser.print_help() |
| 201 | return 1 |
| 202 | |
| 203 | if opts.bad and opts.good and (opts.good > opts.bad): |
| 204 | print ('The good revision (%d) must precede the bad revision (%d).\n' % |
| 205 | (opts.good, opts.bad)) |
| 206 | parser.print_help() |
| 207 | return 1 |
| 208 | |
| 209 | SetArchiveVars(opts.archive) |
rsesek@chromium.org | e0c13e8 | 2009-09-04 07:06:09 +0900 | [diff] [blame] | 210 | |
| 211 | # Pick a starting point, try to get HEAD for this. |
mmoss@chromium.org | af003b8 | 2009-09-05 02:52:33 +0900 | [diff] [blame] | 212 | if opts.bad: |
| 213 | bad_rev = opts.bad |
| 214 | else: |
| 215 | bad_rev = 0 |
| 216 | try: |
| 217 | # Location of the latest build revision number |
nirnimesh@chromium.org | d881c10 | 2010-03-31 10:05:24 +0900 | [diff] [blame] | 218 | BUILD_LATEST_URL = '%s/LATEST' % (BUILD_BASE_URL) |
mmoss@chromium.org | af003b8 | 2009-09-05 02:52:33 +0900 | [diff] [blame] | 219 | nh = urllib.urlopen(BUILD_LATEST_URL) |
| 220 | latest = int(nh.read()) |
| 221 | nh.close() |
nirnimesh@chromium.org | d881c10 | 2010-03-31 10:05:24 +0900 | [diff] [blame] | 222 | bad_rev = raw_input('Bad revision [HEAD:%d]: ' % latest) |
| 223 | if (bad_rev == ''): |
mmoss@chromium.org | af003b8 | 2009-09-05 02:52:33 +0900 | [diff] [blame] | 224 | bad_rev = latest |
| 225 | bad_rev = int(bad_rev) |
| 226 | except Exception, e: |
nirnimesh@chromium.org | d881c10 | 2010-03-31 10:05:24 +0900 | [diff] [blame] | 227 | print('Could not determine latest revision. This could be bad...') |
| 228 | bad_rev = int(raw_input('Bad revision: ')) |
rsesek@chromium.org | e0c13e8 | 2009-09-04 07:06:09 +0900 | [diff] [blame] | 229 | |
| 230 | # Find out when we were good. |
mmoss@chromium.org | af003b8 | 2009-09-05 02:52:33 +0900 | [diff] [blame] | 231 | if opts.good: |
| 232 | good_rev = opts.good |
| 233 | else: |
| 234 | good_rev = 0 |
| 235 | try: |
nirnimesh@chromium.org | d881c10 | 2010-03-31 10:05:24 +0900 | [diff] [blame] | 236 | good_rev = int(raw_input('Last known good [0]: ')) |
mmoss@chromium.org | af003b8 | 2009-09-05 02:52:33 +0900 | [diff] [blame] | 237 | except Exception, e: |
| 238 | pass |
rsesek@chromium.org | e0c13e8 | 2009-09-04 07:06:09 +0900 | [diff] [blame] | 239 | |
| 240 | # Get a list of revisions to bisect across. |
| 241 | revlist = GetRevList(good_rev, bad_rev) |
nirnimesh@chromium.org | 670699b | 2009-10-30 04:52:17 +0900 | [diff] [blame] | 242 | if len(revlist) < 2: # Don't have enough builds to bisect |
nirnimesh@chromium.org | d881c10 | 2010-03-31 10:05:24 +0900 | [diff] [blame] | 243 | print 'We don\'t have enough builds to bisect. revlist: %s' % revlist |
nirnimesh@chromium.org | 670699b | 2009-10-30 04:52:17 +0900 | [diff] [blame] | 244 | sys.exit(1) |
rsesek@chromium.org | e0c13e8 | 2009-09-04 07:06:09 +0900 | [diff] [blame] | 245 | |
| 246 | # If we don't have a |good_rev|, set it to be the first revision possible. |
| 247 | if good_rev == 0: |
| 248 | good_rev = revlist[0] |
| 249 | |
| 250 | # These are indexes of |revlist|. |
| 251 | good = 0 |
| 252 | bad = len(revlist) - 1 |
nirnimesh@chromium.org | c2fedbd | 2009-10-09 04:55:38 +0900 | [diff] [blame] | 253 | last_known_good_rev = revlist[good] |
rsesek@chromium.org | e0c13e8 | 2009-09-04 07:06:09 +0900 | [diff] [blame] | 254 | |
| 255 | # Binary search time! |
| 256 | while good < bad: |
| 257 | candidates = revlist[good:bad] |
| 258 | num_poss = len(candidates) |
| 259 | if num_poss > 10: |
nirnimesh@chromium.org | d881c10 | 2010-03-31 10:05:24 +0900 | [diff] [blame] | 260 | print('%d candidates. %d tries left.' % |
rsesek@chromium.org | e0c13e8 | 2009-09-04 07:06:09 +0900 | [diff] [blame] | 261 | (num_poss, round(math.log(num_poss, 2)))) |
| 262 | else: |
nirnimesh@chromium.org | d881c10 | 2010-03-31 10:05:24 +0900 | [diff] [blame] | 263 | print('Candidates: %s' % revlist[good:bad]) |
rsesek@chromium.org | e0c13e8 | 2009-09-04 07:06:09 +0900 | [diff] [blame] | 264 | |
| 265 | # Cut the problem in half... |
| 266 | test = int((bad - good) / 2) + good |
| 267 | test_rev = revlist[test] |
| 268 | |
rsesek@chromium.org | e92f0f2 | 2009-09-20 09:56:38 +0900 | [diff] [blame] | 269 | # Let the user give this rev a spin (in her own profile, if she wants). |
| 270 | profile = opts.profile |
| 271 | if not profile: |
| 272 | profile = 'profile' # In a temp dir. |
nirnimesh@chromium.org | c2fedbd | 2009-10-09 04:55:38 +0900 | [diff] [blame] | 273 | TryRevision(test_rev, profile, args) |
rsesek@chromium.org | e0c13e8 | 2009-09-04 07:06:09 +0900 | [diff] [blame] | 274 | if AskIsGoodBuild(test_rev): |
nirnimesh@chromium.org | c2fedbd | 2009-10-09 04:55:38 +0900 | [diff] [blame] | 275 | last_known_good_rev = revlist[good] |
rsesek@chromium.org | e0c13e8 | 2009-09-04 07:06:09 +0900 | [diff] [blame] | 276 | good = test + 1 |
| 277 | else: |
| 278 | bad = test |
| 279 | |
| 280 | # We're done. Let the user know the results in an official manner. |
nirnimesh@chromium.org | d881c10 | 2010-03-31 10:05:24 +0900 | [diff] [blame] | 281 | print('You are probably looking for build %d.' % revlist[bad]) |
| 282 | print('CHANGELOG URL:') |
nirnimesh@chromium.org | c2fedbd | 2009-10-09 04:55:38 +0900 | [diff] [blame] | 283 | print(CHANGELOG_URL % (last_known_good_rev, revlist[bad])) |
nirnimesh@chromium.org | d881c10 | 2010-03-31 10:05:24 +0900 | [diff] [blame] | 284 | print('Built at revision:') |
rsesek@chromium.org | e0c13e8 | 2009-09-04 07:06:09 +0900 | [diff] [blame] | 285 | print(BUILD_VIEWVC_URL % revlist[bad]) |
| 286 | |
| 287 | if __name__ == '__main__': |
mmoss@chromium.org | af003b8 | 2009-09-05 02:52:33 +0900 | [diff] [blame] | 288 | sys.exit(main()) |