Home | History | Annotate | Download | only in toolchain-utils

Lines Matching full:branch

25 BRANCH = 'the_actual_branch_used_in_this_script'
46 def FindVersionForToolchain(branch, chromeos_root):
50 digits = branch.split('-')[1].split('B')[0]
55 command = 'repo sync . && git branch -a | grep {0}'.format(major_version)
59 logger.GetLogger().LogFatal('Cannot find version for branch {0}'
60 .format(branch))
173 """Remove the branch with name BRANCH."""
177 if BRANCH in out:
182 command = 'git branch -D {0}'.format(BRANCH)
186 def UploadManifest(manifest, chromeos_root, branch='master'):
195 if branch != 'master':
196 branch = '{0}'.format(branch)
197 command = 'git checkout -b {0} -t cros-internal/{1}'.format(BRANCH, branch)
211 def GetManifestPatch(manifests, version, chromeos_root, branch='master'):
216 return UploadManifest(to_file, chromeos_root, branch)
254 def GccBranchForToolchain(branch):
255 if branch == 'toolchain-3428.65.B':
261 def GetGccBranch(branch):
262 """Get the remote branch name from branch or version."""
264 command = 'git branch -a | grep {0}'.format(branch)
267 release_num = re.match(r'.*(R\d+)-*', branch)
270 command = 'git branch -a | grep {0}'.format(release_num)
273 GccBranchForToolchain(branch)
280 def UploadGccPatch(chromeos_root, gcc_dir, branch):
291 if not branch:
292 branch = 'master'
293 branch = GetGccBranch(branch)
294 command = ('git checkout -b {0} -t {1} && ' 'rm -rf *'.format(BRANCH, branch))
303 def RunRemote(chromeos_root, branch, patches, is_local, target, chrome_version,
318 if branch != 'master':
319 branch_flag = ' -b {0}'.format(branch)
323 description = '{0}_{1}_{2}'.format(branch, GetPatchString(patches), target)
381 '--branch',
382 dest='branch',
384 help=('The branch to run trybot, default is None'))
401 if args.chromeos_version and args.branch:
402 raise RuntimeError('You can not set chromeos_version and branch at the '
406 if args.branch:
408 branch = args.branch
417 # is not in the "master" branch
418 branch = 'master'
428 patch.append(UploadGccPatch(chromeos_root, args.gcc_dir, branch))
429 description = RunRemote(chromeos_root, branch, patch, args.local, target,
450 if 'toolchain' in branch:
451 chromeos_version = FindVersionForToolchain(branch, chromeos_root)