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

Unified Diff: git_nav_downstream.py

Issue 509163002: Make git-nav-downstream synchronous (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: Created 6 years, 4 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: git_nav_downstream.py
diff --git a/git_nav_downstream.py b/git_nav_downstream.py
index 47508c2544a974fab0ba4dec442ebc8221355618..ed3110bfb4496e39d7954aca7f785dc794a61dab 100755
--- a/git_nav_downstream.py
+++ b/git_nav_downstream.py
@@ -12,7 +12,7 @@ which branch.
import argparse
import sys
-from git_common import current_branch, branches, upstream, run_stream, hash_one
+from git_common import current_branch, branches, upstream, run, hash_one
def main(args):
@@ -36,7 +36,7 @@ def main(args):
if not downstreams:
return "No downstream branches"
elif len(downstreams) == 1:
- run_stream('checkout', downstreams[0], stdout=sys.stdout, stderr=sys.stderr)
+ run('checkout', downstreams[0], stdout=sys.stdout, stderr=sys.stderr)
else:
high = len(downstreams) - 1
while True:
@@ -52,8 +52,8 @@ def main(args):
if not r.isdigit() or (0 > int(r) > high):
print "Invalid choice."
else:
- run_stream('checkout', downstreams[int(r)], stdout=sys.stdout,
- stderr=sys.stderr)
+ run('checkout', downstreams[int(r)], stdout=sys.stdout,
+ stderr=sys.stderr)
break
« 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