Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(68)

Side by Side Diff: tools_webrtc/autoroller/roll_deps.py

Issue 2883833003: Autoroller: Skip commit if there are no DEPS changes. (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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())
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698