Beispiel #1
0
 def __init__(self):
     options = [
         CommandOptions.cc,
         CommandOptions.component,
         make_option(
             "--no-prompt",
             action="store_false",
             dest="prompt",
             default=True,
             help=
             "Do not prompt for bug title and comment; use commit log instead."
         ),
         make_option("--no-review",
                     action="store_false",
                     dest="review",
                     default=True,
                     help="Do not mark the patch for review."),
         make_option(
             "--request-commit",
             action="store_true",
             dest="request_commit",
             default=False,
             help="Mark the patch as needing auto-commit after review."),
     ]
     Command.__init__(self,
                      "Create a bug from local changes or local commits",
                      "[COMMITISH]",
                      options=options)
Beispiel #2
0
 def __init__(self):
     options = [
         make_option(
             "--bug-id",
             action="store",
             type="string",
             dest="bug_id",
             help="Specify bug id if no URL is provided in the commit log."
         ),
         make_option("--comment",
                     action="store",
                     type="string",
                     dest="comment",
                     help="Text to include in bug comment."),
         make_option("--open",
                     action="store_true",
                     default=False,
                     dest="open_bug",
                     help="Open bug in default web browser (Mac only)."),
         make_option("--update-only",
                     action="store_true",
                     default=False,
                     dest="update_only",
                     help="Add comment to the bug, but do not close it."),
     ]
     Command.__init__(self,
                      "Mark the specified bug as fixed",
                      "[SVN_REVISION]",
                      options=options)
Beispiel #3
0
 def __init__(self):
     options = [
         make_option("--bug-id", action="store", type="string", dest="bug_id", help="Specify bug id if no URL is provided in the commit log."),
         make_option("--comment", action="store", type="string", dest="comment", help="Text to include in bug comment."),
         make_option("--open", action="store_true", default=False, dest="open_bug", help="Open bug in default web browser (Mac only)."),
         make_option("--update-only", action="store_true", default=False, dest="update_only", help="Add comment to the bug, but do not close it."),
     ]
     Command.__init__(self, "Mark the specified bug as fixed", "[SVN_REVISION]", options=options)
Beispiel #4
0
 def __init__(self):
     options = [
         CommandOptions.cc,
         CommandOptions.component,
         make_option("--no-prompt", action="store_false", dest="prompt", default=True, help="Do not prompt for bug title and comment; use commit log instead."),
         make_option("--no-review", action="store_false", dest="review", default=True, help="Do not mark the patch for review."),
         make_option("--request-commit", action="store_true", dest="request_commit", default=False, help="Mark the patch as needing auto-commit after review."),
     ]
     Command.__init__(self, "Create a bug from local changes or local commits", "[COMMITISH]", options=options)
Beispiel #5
0
 def __init__(self):
     self._sequence = StepSequence([
         CleanWorkingDirectoryStep,
         UpdateStep,
         RevertRevisionStep,
         PrepareChangeLogForRevertStep,
         CompleteRollout,
     ])
     Command.__init__(self, "Revert the given revision in the working copy and optionally commit the revert and re-open the original bug", "REVISION [BUGID]", options=self._sequence.options())
Beispiel #6
0
 def __init__(self):
     options = [
         make_option("-b", "--bug-id", action="store", type="string", dest="bug_id", help="Specify bug id if no URL is provided in the commit log."),
         make_option("--add-log-as-comment", action="store_true", dest="add_log_as_comment", default=False, help="Add commit log message as a comment when uploading the patch."),
         make_option("-m", "--description", action="store", type="string", dest="description", help="Description string for the attachment (default: description from commit message)"),
         CommandOptions.obsolete_patches,
         CommandOptions.review,
         CommandOptions.request_commit,
     ]
     Command.__init__(self, "Attach a range of local commits to bugs as patch files", "COMMITISH", options=options, requires_local_commits=True)
Beispiel #7
0
 def __init__(self):
     options = [
         make_option("--bugs",
                     action="store_true",
                     dest="bugs",
                     help="Output bug links instead of patch links"),
     ]
     Command.__init__(self,
                      "Patches which should be added to the commit queue",
                      options=options)
Beispiel #8
0
 def __init__(self):
     self._sequence = StepSequence([
         CleanWorkingDirectoryStep,
         UpdateStep,
         RevertRevisionStep,
         PrepareChangeLogForRevertStep,
         CompleteRollout,
     ])
     Command.__init__(
         self,
         "Revert the given revision in the working copy and optionally commit the revert and re-open the original bug",
         "REVISION [BUGID]",
         options=self._sequence.options())
Beispiel #9
0
 def __init__(
     self,
     options=None
 ):  # Default values should never be collections (like []) as default values are shared between invocations
     options_list = (options or []) + [
         make_option(
             "--no-confirm",
             action="store_false",
             dest="confirm",
             default=True,
             help=
             "Do not ask the user for confirmation before running the queue.  Dangerous!"
         ),
     ]
     Command.__init__(self, "Run the %s" % self.name, options=options_list)
Beispiel #10
0
 def __init__(self):
     options = [
         make_option(
             "-b",
             "--bug-id",
             action="store",
             type="string",
             dest="bug_id",
             help="Specify bug id if no URL is provided in the commit log."
         ),
         make_option(
             "--add-log-as-comment",
             action="store_true",
             dest="add_log_as_comment",
             default=False,
             help=
             "Add commit log message as a comment when uploading the patch."
         ),
         make_option(
             "-m",
             "--description",
             action="store",
             type="string",
             dest="description",
             help=
             "Description string for the attachment (default: description from commit message)"
         ),
         CommandOptions.obsolete_patches,
         CommandOptions.review,
         CommandOptions.request_commit,
     ]
     Command.__init__(
         self,
         "Attach a range of local commits to bugs as patch files",
         "COMMITISH",
         options=options,
         requires_local_commits=True)
Beispiel #11
0
 def __init__(self):
     Command.__init__(self, "List bugs in the commit-queue")
Beispiel #12
0
 def __init__(self):
     Command.__init__(
         self,
         "Print the status of the %s buildbots" % BuildBot.default_host)
Beispiel #13
0
 def __init__(self):
     Command.__init__(self, "List r+'d patches on a bug", "BUGID")
Beispiel #14
0
 def __init__(self):
     Command.__init__(self, "List patches that are pending review")
Beispiel #15
0
 def __init__(self):
     Command.__init__(self, "List bugs in the commit-queue")
Beispiel #16
0
 def __init__(self):
     Command.__init__(self, "List patches in the commit-queue")
Beispiel #17
0
 def __init__(self):
     options = [
         make_option("--bugs", action="store_true", dest="bugs", help="Output bug links instead of patch links"),
     ]
     Command.__init__(self, "Patches which should be added to the commit queue", options=options)
Beispiel #18
0
 def __init__(self):
     Command.__init__(self, "Print the status of the %s buildbots" % BuildBot.default_host)
Beispiel #19
0
 def __init__(self, options=None): # Default values should never be collections (like []) as default values are shared between invocations
     options_list = (options or []) + [
         make_option("--no-confirm", action="store_false", dest="confirm", default=True, help="Do not ask the user for confirmation before running the queue.  Dangerous!"),
     ]
     Command.__init__(self, "Run the %s" % self.name, options=options_list)
Beispiel #20
0
 def __init__(self):
     Command.__init__(
         self,
         "Print a commit message suitable for the uncommitted changes")
Beispiel #21
0
 def __init__(self):
     Command.__init__(self, "List patches that are pending review")
Beispiel #22
0
 def __init__(self):
     Command.__init__(self, "List patches in the commit-queue")
Beispiel #23
0
 def __init__(self):
     Command.__init__(self, "List r+'d patches on a bug", "BUGID")
Beispiel #24
0
 def __init__(self):
     Command.__init__(self, "Print a commit message suitable for the uncommitted changes")