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

Unified Diff: gclient.py

Issue 8357005: Disable parallel sync on cygwin since it's flaky for users. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 9 years, 2 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: gclient.py
diff --git a/gclient.py b/gclient.py
index 2fd056f8e44e2bc746ddbf711865a8bbd64e4985..84f3db9dc34bac766d7589cf26dfe68f57aa8133 100644
--- a/gclient.py
+++ b/gclient.py
@@ -1432,7 +1432,9 @@ def GenUsage(parser, command):
def Parser():
"""Returns the default parser."""
parser = optparse.OptionParser(version='%prog ' + __version__)
- parser.add_option('-j', '--jobs', default=8, type='int',
+ # cygwin has issues with parallel sync
+ jobs = 1 if sys.platform == 'cygwin' else 8
+ parser.add_option('-j', '--jobs', default=jobs, type='int',
help='Specify how many SCM commands can run in parallel; '
'default=%default')
parser.add_option('-v', '--verbose', action='count', default=0,
« 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