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

Unified Diff: gclient_utils.py

Issue 257023: Modify the output of gclient update, gclient status to only print out... (Closed) Base URL: svn://chrome-svn/chrome/trunk/tools/depot_tools/
Patch Set: Created 11 years, 3 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
Index: gclient_utils.py
===================================================================
--- gclient_utils.py (revision 27770)
+++ gclient_utils.py (working copy)
@@ -196,9 +196,11 @@
default), gclient will raise an Error exception.
"""
+ messages_printed = False
M-A Ruel 2009/10/02 01:23:10 unnecessary
if print_messages:
print("\n________ running \'%s\' in \'%s\'"
% (' '.join(command), in_directory))
+ messages_printed = True
# *Sigh*: Windows needs shell=True, or else it won't search %PATH% for the
# executable, but shell=True makes subprocess on Linux fail when it's called
@@ -215,6 +217,10 @@
while in_byte:
if in_byte != "\r":
if print_stdout:
+ if not messages_printed:
M-A Ruel 2009/10/02 01:23:10 if not print_messages:
+ print("\n________ running \'%s\' in \'%s\'"
+ % (' '.join(command), in_directory))
+ messages_printed = True
M-A Ruel 2009/10/02 01:23:10 print_messages = True
sys.stdout.write(in_byte)
if in_byte != "\n":
in_line += in_byte
« gclient_scm.py ('K') | « gclient_scm.py ('k') | tests/gclient_scm_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698