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

Unified Diff: gclient.py

Issue 15367008: Set default nag_timer=6, and make it disable-able. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 7 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 | gclient_scm.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gclient.py
diff --git a/gclient.py b/gclient.py
index 242cf0f2f7b6e0abddf9ad39504e6ce7584c89ae..f71eccc4c3d412ed8e09b47ed7771fb86d4d681c 100755
--- a/gclient.py
+++ b/gclient.py
@@ -1700,6 +1700,10 @@ def Parser():
help='create a gclient file containing the provided '
'string. Due to Cygwin/Python brokenness, it '
'probably can\'t contain any newlines.')
+ parser.add_option('--no-nag-max', default=False, action='store_true',
+ help='If a subprocess runs for too long without generating'
+ ' terminal output, generate warnings, but do not kill'
+ ' the process.')
# Integrate standard options processing.
old_parser = parser.parse_args
def Parse(args):
@@ -1730,6 +1734,8 @@ def Parser():
options.manually_grab_svn_rev = None
if not hasattr(options, 'force'):
options.force = None
+ if options.no_nag_max:
+ gclient_scm.SCMWrapper.nag_max = None
return (options, args)
parser.parse_args = Parse
# We don't want wordwrapping in epilog (usually examples)
« no previous file with comments | « no previous file | gclient_scm.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698