| 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 automatically roll dependencies in the WebRTC DEPS file.""" | 10 """Script to automatically roll dependencies in the WebRTC DEPS file.""" |
| (...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 465 new_cr_deps = ParseRemoteCrDepsFile(new_cr_rev) | 465 new_cr_deps = ParseRemoteCrDepsFile(new_cr_rev) |
| 466 changed_deps = CalculateChangedDeps(webrtc_deps, new_cr_deps) | 466 changed_deps = CalculateChangedDeps(webrtc_deps, new_cr_deps) |
| 467 clang_change = CalculateChangedClang(new_cr_rev) | 467 clang_change = CalculateChangedClang(new_cr_rev) |
| 468 commit_msg = GenerateCommitMessage(current_cr_rev, new_cr_rev, | 468 commit_msg = GenerateCommitMessage(current_cr_rev, new_cr_rev, |
| 469 current_commit_pos, new_commit_pos, | 469 current_commit_pos, new_commit_pos, |
| 470 changed_deps, clang_change) | 470 changed_deps, clang_change) |
| 471 logging.debug('Commit message:\n%s', commit_msg) | 471 logging.debug('Commit message:\n%s', commit_msg) |
| 472 | 472 |
| 473 _CreateRollBranch(opts.dry_run) | 473 _CreateRollBranch(opts.dry_run) |
| 474 UpdateDepsFile(deps_filename, current_cr_rev, new_cr_rev, changed_deps) | 474 UpdateDepsFile(deps_filename, current_cr_rev, new_cr_rev, changed_deps) |
| 475 _LocalCommit(commit_msg, opts.dry_run) | 475 if _IsTreeClean(): |
| 476 _UploadCL(opts.dry_run, opts.rietveld_email) | 476 logging.info("No DEPS changes detected, skipping CL creation.") |
| 477 _SendToCQ(opts.dry_run, opts.skip_cq) | 477 else: |
| 478 _LocalCommit(commit_msg, opts.dry_run) |
| 479 _UploadCL(opts.dry_run, opts.rietveld_email) |
| 480 _SendToCQ(opts.dry_run, opts.skip_cq) |
| 478 return 0 | 481 return 0 |
| 479 | 482 |
| 480 | 483 |
| 481 if __name__ == '__main__': | 484 if __name__ == '__main__': |
| 482 sys.exit(main()) | 485 sys.exit(main()) |
| OLD | NEW |