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: Robbie Iannucci <iannucci@chromium.org>
This commit is contained in:
Henrique Ferreiro
2019-02-22 10:09:07 +00:00
committed by Commit Bot
parent c0546b9817
commit 3acdefa9aa

View File

@@ -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