| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | 2 # Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. |
| 3 # | 3 # |
| 4 # Use of this source code is governed by a BSD-style license | 4 # Use of this source code is governed by a BSD-style license |
| 5 # that can be found in the LICENSE file in the root of the source | 5 # that can be found in the LICENSE file in the root of the source |
| 6 # tree. An additional intellectual property rights grant can be found | 6 # tree. An additional intellectual property rights grant can be found |
| 7 # in the file PATENTS. All contributing project authors may | 7 # in the file PATENTS. All contributing project authors may |
| 8 # be found in the AUTHORS file in the root of the source tree. | 8 # be found in the AUTHORS file in the root of the source tree. |
| 9 | 9 |
| 10 """Script to roll chromium_revision in the WebRTC DEPS file.""" | 10 """Script to roll chromium_revision in the WebRTC DEPS file.""" |
| (...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 284 if clang_change.current_rev != clang_change.new_rev: | 284 if clang_change.current_rev != clang_change.new_rev: |
| 285 commit_msg.append('Clang version changed %s:%s' % | 285 commit_msg.append('Clang version changed %s:%s' % |
| 286 (clang_change.current_rev, clang_change.new_rev)) | 286 (clang_change.current_rev, clang_change.new_rev)) |
| 287 change_url = CHROMIUM_FILE_TEMPLATE % (rev_interval, | 287 change_url = CHROMIUM_FILE_TEMPLATE % (rev_interval, |
| 288 CLANG_UPDATE_SCRIPT_URL_PATH) | 288 CLANG_UPDATE_SCRIPT_URL_PATH) |
| 289 commit_msg.append('Details: %s\n' % change_url) | 289 commit_msg.append('Details: %s\n' % change_url) |
| 290 else: | 290 else: |
| 291 commit_msg.append('No update to Clang.\n') | 291 commit_msg.append('No update to Clang.\n') |
| 292 | 292 |
| 293 commit_msg.append('TBR=%s' % tbr_authors) | 293 commit_msg.append('TBR=%s' % tbr_authors) |
| 294 commit_msg.append('BUG=None') |
| 294 return '\n'.join(commit_msg) | 295 return '\n'.join(commit_msg) |
| 295 | 296 |
| 296 | 297 |
| 297 def UpdateDeps(deps_filename, old_cr_revision, new_cr_revision): | 298 def UpdateDeps(deps_filename, old_cr_revision, new_cr_revision): |
| 298 """Update the DEPS file with the new revision.""" | 299 """Update the DEPS file with the new revision.""" |
| 299 with open(deps_filename, 'rb') as deps_file: | 300 with open(deps_filename, 'rb') as deps_file: |
| 300 deps_content = deps_file.read() | 301 deps_content = deps_file.read() |
| 301 deps_content = deps_content.replace(old_cr_revision, new_cr_revision) | 302 deps_content = deps_content.replace(old_cr_revision, new_cr_revision) |
| 302 with open(deps_filename, 'wb') as deps_file: | 303 with open(deps_filename, 'wb') as deps_file: |
| 303 deps_file.write(deps_content) | 304 deps_file.write(deps_content) |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 436 _CreateRollBranch(opts.dry_run) | 437 _CreateRollBranch(opts.dry_run) |
| 437 UpdateDeps(deps_filename, current_cr_rev, new_cr_rev) | 438 UpdateDeps(deps_filename, current_cr_rev, new_cr_rev) |
| 438 _LocalCommit(commit_msg, opts.dry_run) | 439 _LocalCommit(commit_msg, opts.dry_run) |
| 439 _UploadCL(opts.dry_run, opts.rietveld_email) | 440 _UploadCL(opts.dry_run, opts.rietveld_email) |
| 440 _SendToCQ(opts.dry_run, opts.skip_cq) | 441 _SendToCQ(opts.dry_run, opts.skip_cq) |
| 441 return 0 | 442 return 0 |
| 442 | 443 |
| 443 | 444 |
| 444 if __name__ == '__main__': | 445 if __name__ == '__main__': |
| 445 sys.exit(main()) | 446 sys.exit(main()) |
| OLD | NEW |