OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 """Snapshot Build Bisect Tool | 6 """Snapshot Build Bisect Tool |
7 | 7 |
8 This script bisects a snapshot archive using binary search. It starts at | 8 This script bisects a snapshot archive using binary search. It starts at |
9 a bad revision (it will try to guess HEAD) and asks for a last known-good | 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, | 10 revision. It will then binary search across this revision range by downloading, |
(...skipping 17 matching lines...) Expand all Loading... |
28 | 28 |
29 # The base URL for official builds. | 29 # The base URL for official builds. |
30 OFFICIAL_BASE_URL = 'http://%s/%s' % (GOOGLE_APIS_URL, GS_BUCKET_NAME) | 30 OFFICIAL_BASE_URL = 'http://%s/%s' % (GOOGLE_APIS_URL, GS_BUCKET_NAME) |
31 | 31 |
32 # URL template for viewing changelogs between revisions. | 32 # URL template for viewing changelogs between revisions. |
33 CHANGELOG_URL = ('http://build.chromium.org' | 33 CHANGELOG_URL = ('http://build.chromium.org' |
34 '/f/chromium/perf/dashboard/ui/changelog.html' | 34 '/f/chromium/perf/dashboard/ui/changelog.html' |
35 '?url=/trunk/src&range=%d%%3A%d') | 35 '?url=/trunk/src&range=%d%%3A%d') |
36 | 36 |
37 # URL template for viewing changelogs between official versions. | 37 # URL template for viewing changelogs between official versions. |
38 OFFICIAL_CHANGELOG_URL = ('http://omahaproxy.appspot.com/changelog' | 38 OFFICIAL_CHANGELOG_URL = ('https://chromium.googlesource.com/chromium/' |
39 '?old_version=%s&new_version=%s') | 39 'src/+log/%s..%s?pretty=full') |
40 | 40 |
41 # DEPS file URL. | 41 # DEPS file URL. |
42 DEPS_FILE = 'http://src.chromium.org/viewvc/chrome/trunk/src/DEPS?revision=%d' | 42 DEPS_FILE = 'http://src.chromium.org/viewvc/chrome/trunk/src/DEPS?revision=%d' |
43 | 43 |
44 # Blink changelogs URL. | 44 # Blink changelogs URL. |
45 BLINK_CHANGELOG_URL = ('http://build.chromium.org' | 45 BLINK_CHANGELOG_URL = ('http://build.chromium.org' |
46 '/f/chromium/perf/dashboard/ui/changelog_blink.html' | 46 '/f/chromium/perf/dashboard/ui/changelog_blink.html' |
47 '?url=/trunk&range=%d%%3A%d') | 47 '?url=/trunk&range=%d%%3A%d') |
48 | 48 |
49 DONE_MESSAGE_GOOD_MIN = ('You are probably looking for a change made after %s (' | 49 DONE_MESSAGE_GOOD_MIN = ('You are probably looking for a change made after %s (' |
(...skipping 1095 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1145 | 1145 |
1146 print 'CHANGELOG URL:' | 1146 print 'CHANGELOG URL:' |
1147 if opts.official_builds: | 1147 if opts.official_builds: |
1148 print OFFICIAL_CHANGELOG_URL % (min_chromium_rev, max_chromium_rev) | 1148 print OFFICIAL_CHANGELOG_URL % (min_chromium_rev, max_chromium_rev) |
1149 else: | 1149 else: |
1150 print ' ' + CHANGELOG_URL % (min_chromium_rev, max_chromium_rev) | 1150 print ' ' + CHANGELOG_URL % (min_chromium_rev, max_chromium_rev) |
1151 | 1151 |
1152 | 1152 |
1153 if __name__ == '__main__': | 1153 if __name__ == '__main__': |
1154 sys.exit(main()) | 1154 sys.exit(main()) |
OLD | NEW |