| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 """Meta checkout manager supporting both Subversion and GIT.""" | 6 """Meta checkout manager supporting both Subversion and GIT.""" |
| 7 # Files | 7 # Files |
| 8 # .gclient : Current client configuration, written by 'config' command. | 8 # .gclient : Current client configuration, written by 'config' command. |
| 9 # Format is a Python script defining 'solutions', a list whose | 9 # Format is a Python script defining 'solutions', a list whose |
| 10 # entries each are maps binding the strings "name" and "url" | 10 # entries each are maps binding the strings "name" and "url" |
| (...skipping 2243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2254 else: | 2254 else: |
| 2255 jobs = max(8, gclient_utils.NumLocalCpus()) | 2255 jobs = max(8, gclient_utils.NumLocalCpus()) |
| 2256 # cmp: 2013/06/19 | 2256 # cmp: 2013/06/19 |
| 2257 # Temporary workaround to lower bot-load on SVN server. | 2257 # Temporary workaround to lower bot-load on SVN server. |
| 2258 # Bypassed if a bot_update flag is detected. | 2258 # Bypassed if a bot_update flag is detected. |
| 2259 if (os.environ.get('CHROME_HEADLESS') == '1' and | 2259 if (os.environ.get('CHROME_HEADLESS') == '1' and |
| 2260 not os.path.exists('update.flag')): | 2260 not os.path.exists('update.flag')): |
| 2261 jobs = 1 | 2261 jobs = 1 |
| 2262 | 2262 |
| 2263 self.add_option( | 2263 self.add_option( |
| 2264 '-j', '--jobs', default=jobs, type='int', | 2264 '-j', '--jobs', default=1, type='int', |
| 2265 help='Specify how many SCM commands can run in parallel; defaults to ' | 2265 help='Specify how many SCM commands can run in parallel; defaults to ' |
| 2266 '%default on this machine') | 2266 '%default on this machine') |
| 2267 self.add_option( | 2267 self.add_option( |
| 2268 '-v', '--verbose', action='count', default=0, | 2268 '-v', '--verbose', action='count', default=0, |
| 2269 help='Produces additional output for diagnostics. Can be used up to ' | 2269 help='Produces additional output for diagnostics. Can be used up to ' |
| 2270 'three times for more logging info.') | 2270 'three times for more logging info.') |
| 2271 self.add_option( | 2271 self.add_option( |
| 2272 '--gclientfile', dest='config_filename', | 2272 '--gclientfile', dest='config_filename', |
| 2273 help='Specify an alternate %s file' % self.gclientfile_default) | 2273 help='Specify an alternate %s file' % self.gclientfile_default) |
| 2274 self.add_option( | 2274 self.add_option( |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2356 | 2356 |
| 2357 | 2357 |
| 2358 if '__main__' == __name__: | 2358 if '__main__' == __name__: |
| 2359 try: | 2359 try: |
| 2360 sys.exit(main(sys.argv[1:])) | 2360 sys.exit(main(sys.argv[1:])) |
| 2361 except KeyboardInterrupt: | 2361 except KeyboardInterrupt: |
| 2362 sys.stderr.write('interrupted\n') | 2362 sys.stderr.write('interrupted\n') |
| 2363 sys.exit(1) | 2363 sys.exit(1) |
| 2364 | 2364 |
| 2365 # vim: ts=2:sw=2:tw=80:et: | 2365 # vim: ts=2:sw=2:tw=80:et: |
| OLD | NEW |