Commit 3acdefa9 authored by Henrique Ferreiro's avatar Henrique Ferreiro Committed by Commit Bot

Omit "Skipping <branch>" message when unneeded

When calling `git rebase-update <branches>`, don't emit messages about
skipping branches which are not in the list of branches to be rebased.

R=iannucci@chromium.org

Change-Id: Ia5135d2e794646aaec68bca1aa64f4a73c98c186
Reviewed-on: https://chromium-review.googlesource.com/c/1476394
Commit-Queue: Robbie Iannucci <iannucci@chromium.org>
Reviewed-by: 's avatarRobbie Iannucci <iannucci@chromium.org>
parent c0546b98
......@@ -258,6 +258,8 @@ def main(args=None):
git.freeze() # just in case there are any local changes.
skipped, branch_tree = git.get_branch_tree()
if opts.branches:
skipped = set(skipped).intersection(set(opts.branches))
for branch in skipped:
print 'Skipping %s: No upstream specified' % branch
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment