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

Side by Side Diff: bin/cros_repo_sync_all.py

Issue 3110027: Keep repo using http on incremental builds (Closed) Base URL: ssh://git@chromiumos-git//crosutils.git
Patch Set: Created 10 years, 4 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 unified diff | Download patch
« bin/cbuildbot.py ('K') | « bin/cbuildbot.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 2
3 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. 3 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 """Stop gap sync function until cbuildbot is integrated into all builders""" 7 """Stop gap sync function until cbuildbot is integrated into all builders"""
8 8
9 import cbuildbot 9 import cbuildbot
10 import optparse 10 import optparse
11 import sys 11 import sys
12 12
13 """Number of retries to retry repo sync before giving up""" 13 """Number of retries to retry repo sync before giving up"""
14 _NUMBER_OF_RETRIES=3 14 _NUMBER_OF_RETRIES=3
15 15
16 def main(): 16 def main():
17 parser = optparse.OptionParser() 17 parser = optparse.OptionParser()
18 parser.add_option('-r', '--buildroot', 18 parser.add_option('-r', '--buildroot',
19 help='root directory where sync occurs') 19 help='root directory where sync occurs')
20 parser.add_option('-c', '--clobber', action='store_true', default=False, 20 parser.add_option('-c', '--clobber', action='store_true', default=False,
21 help='clobber build directory and do a full checkout') 21 help='clobber build directory and do a full checkout')
22 (options, args) = parser.parse_args() 22 (options, args) = parser.parse_args()
23 if options.buildroot: 23 if options.buildroot:
24 if options.clobber: 24 if options.clobber:
25 cbuildbot._FullCheckout(options.buildroot, rw_checkout=False, 25 cbuildbot._FullCheckout(options.buildroot, rw_checkout=False,
26 retries=_NUMBER_OF_RETRIES) 26 retries=_NUMBER_OF_RETRIES)
27 else: 27 else:
28 cbuildbot._IncrementalCheckout(options.buildroot, 28 cbuildbot._IncrementalCheckout(options.buildroot, rw_checkout=False,
29 retries=_NUMBER_OF_RETRIES) 29 retries=_NUMBER_OF_RETRIES)
30 else: 30 else:
31 print >>sys.stderr, 'ERROR: Must set buildroot' 31 print >>sys.stderr, 'ERROR: Must set buildroot'
32 sys.exit(1) 32 sys.exit(1)
33 33
34 if __name__ == '__main__': 34 if __name__ == '__main__':
35 main() 35 main()
OLDNEW
« bin/cbuildbot.py ('K') | « bin/cbuildbot.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698