| Index: bin/cros_repo_sync_all.py
 | 
| diff --git a/bin/cros_repo_sync_all.py b/bin/cros_repo_sync_all.py
 | 
| index 8400626efad9ee4874c945134b3abd57ffd78960..6203b5a60de33c78c91d29e46358f9ec937c34fa 100755
 | 
| --- a/bin/cros_repo_sync_all.py
 | 
| +++ b/bin/cros_repo_sync_all.py
 | 
| @@ -12,7 +12,7 @@ import optparse
 | 
|  import sys
 | 
|  
 | 
|  """Number of retries to retry repo sync before giving up"""
 | 
| -_NUMBER_OF_RETRIES=3
 | 
| +_NUMBER_OF_RETRIES = 3
 | 
|  
 | 
|  def main():
 | 
|    parser = optparse.OptionParser()
 | 
| @@ -20,16 +20,18 @@ def main():
 | 
|                      help='root directory where sync occurs')
 | 
|    parser.add_option('-c', '--clobber', action='store_true', default=False,
 | 
|                      help='clobber build directory and do a full checkout')
 | 
| +  parser.add_option('-t', '--tracking_branch', default='cros/master',
 | 
| +                    help='Branch to sync against for full checkouts.')
 | 
|    (options, args) = parser.parse_args()
 | 
|    if options.buildroot:
 | 
|      if options.clobber:
 | 
| -      cbuildbot._FullCheckout(options.buildroot, rw_checkout=False,
 | 
| -          retries=_NUMBER_OF_RETRIES)
 | 
| +      cbuildbot._FullCheckout(options.buildroot, options.tracking_branch,
 | 
| +                              rw_checkout=False, retries=_NUMBER_OF_RETRIES)
 | 
|      else:
 | 
|        cbuildbot._IncrementalCheckout(options.buildroot, rw_checkout=False,
 | 
|            retries=_NUMBER_OF_RETRIES)
 | 
|    else:
 | 
| -    print >>sys.stderr, 'ERROR:  Must set buildroot'
 | 
| +    print >> sys.stderr, 'ERROR:  Must set buildroot'
 | 
|      sys.exit(1)
 | 
|  
 | 
|  if __name__ == '__main__':
 | 
| 
 |