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

Unified Diff: cit.py

Issue 2062053002: cit: print to stderr to allow piping from cit log cat. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: Created 4 years, 6 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: cit.py
diff --git a/cit.py b/cit.py
index aeab2e90c5ccc6af3b4456665ba6d0eef44ebe95..a83caf7a939c621f221fff6229cc6d2903f26b2e 100755
--- a/cit.py
+++ b/cit.py
@@ -56,8 +56,10 @@ def need_to_update(branch):
def ensure_infra(branch):
"""Ensures that infra.git is present in ~/.chrome-infra."""
- print 'Fetching infra@%s into %s, may take a couple of minutes...' % (
- branch, TARGET_DIR)
+ sys.stderr.write(
Ryan Tseng 2016/06/14 17:41:08 use print >>sys.stderr, "..." Either that, or add
tandrii(chromium) 2016/06/14 18:09:40 Actually, the whole reason for using stderr.write
+ 'Fetching infra@%s into %s, may take a couple of minutes...' % (
+ branch, TARGET_DIR))
+ sys.stderr.flush()
if not os.path.isdir(TARGET_DIR):
os.mkdir(TARGET_DIR)
if not os.path.exists(os.path.join(TARGET_DIR, '.gclient')):
@@ -69,6 +71,8 @@ def ensure_infra(branch):
[sys.executable, GCLIENT, 'sync', '--revision', 'origin/%s' % (branch,)],
cwd=TARGET_DIR,
stdout=subprocess.PIPE)
+ sys.stderr.write(' done.\n')
+ sys.stderr.flush()
def get_available_tools():
« 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