コード例 #1
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."),
     ]
     AbstractDeclarativeCommand.__init__(self, options=options)
コード例 #2
0
 def __init__(self):
     options = [
         steps.Options.cc,
         steps.Options.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."),
     ]
     AbstractDeclarativeCommand.__init__(self, options=options)
コード例 #3
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)"
         ),
         steps.Options.obsolete_patches,
         steps.Options.review,
         steps.Options.request_commit,
     ]
     AbstractDeclarativeCommand.__init__(self,
                                         options=options,
                                         requires_local_commits=True)
コード例 #4
0
 def __init__(self):
     options = [
         steps.Options.cc,
         steps.Options.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.",
         ),
     ]
     AbstractDeclarativeCommand.__init__(self, options=options)
コード例 #5
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.",
         ),
     ]
     AbstractDeclarativeCommand.__init__(self, options=options)
コード例 #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)",
         ),
         steps.Options.obsolete_patches,
         steps.Options.review,
         steps.Options.request_commit,
     ]
     AbstractDeclarativeCommand.__init__(self, options=options, requires_local_commits=True)
コード例 #7
0
ファイル: queries.py プロジェクト: explorer-ading/axSurface
 def __init__(self):
     options = [
         make_option("--bugs",
                     action="store_true",
                     dest="bugs",
                     help="Output bug links instead of patch links"),
     ]
     AbstractDeclarativeCommand.__init__(self, options=options)
コード例 #8
0
 def __init__(self):
     self._sequence = StepSequence(self.steps)
     AbstractDeclarativeCommand.__init__(self, self._sequence.options())
コード例 #9
0
ファイル: queries.py プロジェクト: flwh/Alcatel_OT_985_kernel
 def __init__(self):
     options = [
         make_option("--bugs", action="store_true", dest="bugs", help="Output bug links instead of patch links"),
     ]
     AbstractDeclarativeCommand.__init__(self, options=options)
コード例 #10
0
 def __init__(self):
     self._sequence = StepSequence(self.steps)
     AbstractDeclarativeCommand.__init__(self, self._sequence.options())