Lines Matching full:branch

25 BRANCH = 'the_actual_branch_used_in_this_script'  variable
47 def FindVersionForToolchain(branch, chromeos_root): argument
51 digits = branch.split('-')[1].split('B')[0]
56 command = 'repo sync . && git branch -a | grep {0}'.format(major_version)
60 logger.GetLogger().LogFatal('Cannot find version for branch {0}'
61 .format(branch))
176 """Remove the branch with name BRANCH."""
180 if BRANCH in out:
185 command = 'git branch -D {0}'.format(BRANCH)
189 def UploadManifest(manifest, chromeos_root, branch='master'): argument
198 if branch != 'master':
199 branch = '{0}'.format(branch)
200 command = 'git checkout -b {0} -t cros-internal/{1}'.format(BRANCH, branch)
214 def GetManifestPatch(manifests, version, chromeos_root, branch='master'): argument
219 return UploadManifest(to_file, chromeos_root, branch)
257 def GccBranchForToolchain(branch): argument
258 if branch == 'toolchain-3428.65.B':
264 def GetGccBranch(branch): argument
265 """Get the remote branch name from branch or version."""
267 command = 'git branch -a | grep {0}'.format(branch)
270 release_num = re.match(r'.*(R\d+)-*', branch)
273 command = 'git branch -a | grep {0}'.format(release_num)
276 GccBranchForToolchain(branch)
283 def UploadGccPatch(chromeos_root, gcc_dir, branch): argument
294 if not branch:
295 branch = 'master'
296 branch = GetGccBranch(branch)
297 command = ('git checkout -b {0} -t {1} && ' 'rm -rf *'.format(BRANCH, branch))
306 def RunRemote(chromeos_root, branch, patches, is_local, target, chrome_version, argument
321 if branch != 'master':
322 branch_flag = ' -b {0}'.format(branch)
326 description = '{0}_{1}_{2}'.format(branch, GetPatchString(patches), target)
388 '--branch',
389 dest='branch',
391 help=('The branch to run trybot, default is None'))
409 if args.chromeos_version and args.branch:
410 raise RuntimeError('You can not set chromeos_version and branch at the '
414 if args.branch:
416 branch = args.branch
425 # is not in the "master" branch
426 branch = 'master'
436 patch.append(UploadGccPatch(chromeos_root, args.gcc_dir, branch))
437 description = RunRemote(chromeos_root, branch, patch, args.local, target,
458 if 'toolchain' in branch:
459 chromeos_version = FindVersionForToolchain(branch, chromeos_root)