Lines Matching refs:options

19 Usage summary: upload.py [options] [-- diff_options]
21 Diff options are passed to the diff command of the underlying system.
392 parser = optparse.OptionParser(usage="%prog [options] [-- diff_options]")
397 group = parser.add_option_group("Logging options")
406 group = parser.add_option_group("Review server options")
422 group = parser.add_option_group("Issue options")
437 # Upload options
438 group = parser.add_option_group("Patch options")
458 def GetRpcServer(options):
469 email = options.email
471 email = GetEmail("Email (login for uploading to %s)" % options.server)
476 host = (options.host or options.server).lower()
478 email = options.email
483 options.server,
485 host_override=options.host,
488 save_cookies=options.save_cookies)
493 return rpc_server_class(options.server, GetUserCredentials,
494 host_override=options.host,
495 save_cookies=options.save_cookies)
591 def __init__(self, options):
595 options: Command line options.
597 self.options = options
661 def UploadBaseFiles(self, issue, rpc_server, patch_list, patchset, options,
678 if options.verbose > 0 and not file_too_large:
689 if options.email:
690 form_fields.append(("user", options.email))
724 def __init__(self, options):
725 super(SubversionVCS, self).__init__(options)
726 if self.options.revision:
727 match = re.match(r"(\d+)(:(\d+))?", self.options.revision)
729 ErrorExit("Invalid Subversion revision %s." % self.options.revision)
739 required = self.options.download_base or self.options.revision is not None
792 if self.options.revision:
793 cmd += ["-r", self.options.revision]
856 if not self.options.revision:
920 if self.options.revision:
988 def __init__(self, options):
989 super(GitVCS, self).__init__(options)
997 if self.options.revision:
998 extra_args = [self.options.revision] + extra_args
1045 def __init__(self, options, repo_dir):
1046 super(MercurialVCS, self).__init__(options)
1053 if self.options.revision:
1054 self.base_rev = self.options.revision
1181 def UploadSeparatePatches(issue, rpc_server, patchset, data, options):
1194 if not options.download_base:
1209 def GuessVCS(options):
1225 return MercurialVCS(options, out.strip())
1233 return SubversionVCS(options)
1241 return GitVCS(options)
1266 options, args = parser.parse_args(argv[1:])
1268 verbosity = options.verbose
1273 vcs = GuessVCS(options)
1277 base = vcs.GuessBase(options.download_base)
1280 if not base and options.download_base:
1281 options.download_base = True
1283 if not options.assume_yes:
1289 print "Upload server:", options.server, "(change with -s/--server)"
1290 if options.issue:
1294 message = options.message or raw_input(prompt).strip()
1297 rpc_server = GetRpcServer(options)
1301 if options.issue:
1302 form_fields.append(("issue", str(options.issue)))
1303 if options.email:
1304 form_fields.append(("user", options.email))
1305 if options.reviewers:
1306 for reviewer in options.reviewers.split(','):
1309 form_fields.append(("reviewers", options.reviewers))
1310 if options.cc:
1311 for cc in options.cc.split(','):
1314 form_fields.append(("cc", options.cc))
1315 description = options.description
1316 if options.description_file:
1317 if options.description:
1319 file = open(options.description_file, 'r')
1336 if options.send_mail and options.download_base:
1338 if not options.download_base:
1349 if not options.download_base or not uploaded_diff_file:
1366 result = UploadSeparatePatches(issue, rpc_server, patchset, data, options)
1367 if not options.download_base:
1370 if not options.download_base:
1371 vcs.UploadBaseFiles(issue, rpc_server, patches, patchset, options, files)
1372 if options.send_mail: