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

Unified Diff: git_rebase_update.py

Issue 264423002: Make git rebase-update more responsive. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: Make rebase-update stream fetch output Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | testing_support/git_test_utils.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: git_rebase_update.py
diff --git a/git_rebase_update.py b/git_rebase_update.py
index 4e96c69898b6b2905f1977305fea673f4ccd0093..f87f43b873fba4a05cace6e1f173e74e2058930c 100755
--- a/git_rebase_update.py
+++ b/git_rebase_update.py
@@ -64,10 +64,8 @@ def fetch_remotes(branch_tree):
if not fetch_args: # pragma: no cover
print 'Nothing to fetch.'
else:
- out, err = git.run_with_stderr('fetch', *fetch_args)
- for data, stream in zip((out, err), (sys.stdout, sys.stderr)):
- if data:
- print >> stream, data
+ git.run_with_stderr('fetch', *fetch_args, stdout=sys.stdout,
+ stderr=sys.stderr)
def remove_empty_branches(branch_tree):
« no previous file with comments | « no previous file | testing_support/git_test_utils.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698