OLD | NEW |
1 # Copyright (C) 2010 Google Inc. All rights reserved. | 1 # Copyright (C) 2010 Google Inc. All rights reserved. |
2 # | 2 # |
3 # Redistribution and use in source and binary forms, with or without | 3 # Redistribution and use in source and binary forms, with or without |
4 # modification, are permitted provided that the following conditions are | 4 # modification, are permitted provided that the following conditions are |
5 # met: | 5 # met: |
6 # | 6 # |
7 # * Redistributions of source code must retain the above copyright | 7 # * Redistributions of source code must retain the above copyright |
8 # notice, this list of conditions and the following disclaimer. | 8 # notice, this list of conditions and the following disclaimer. |
9 # * Redistributions in binary form must reproduce the above | 9 # * Redistributions in binary form must reproduce the above |
10 # copyright notice, this list of conditions and the following disclaimer | 10 # copyright notice, this list of conditions and the following disclaimer |
(...skipping 11 matching lines...) Expand all Loading... |
22 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | 22 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
23 # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 23 # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
24 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 24 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
25 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 25 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
26 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 26 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
27 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 27 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
28 | 28 |
29 from optparse import make_option | 29 from optparse import make_option |
30 | 30 |
31 class Options(object): | 31 class Options(object): |
32 blocks = make_option("--blocks", action="store", type="string", dest="blocks
", default=None, help="Bug number which the created bug blocks.") | |
33 build = make_option("--build", action="store_true", dest="build", default=Fa
lse, help="Build and run run-webkit-tests before committing.") | |
34 build_style = make_option("--build-style", action="store", dest="build_style
", default=None, help="Whether to build debug, release, or both.") | |
35 cc = make_option("--cc", action="store", type="string", dest="cc", help="Com
ma-separated list of email addresses to carbon-copy.") | |
36 check_style = make_option("--ignore-style", action="store_false", dest="chec
k_style", default=True, help="Don't check to see if the patch has proper style b
efore uploading.") | |
37 check_style_filter = make_option("--check-style-filter", action="store", typ
e="string", dest="check_style_filter", default=None, help="Filter style-checker
rules (see check-webkit-style --help).") | |
38 clean = make_option("--no-clean", action="store_false", dest="clean", defaul
t=True, help="Don't check if the working directory is clean before applying patc
hes") | |
39 close_bug = make_option("--no-close", action="store_false", dest="close_bug"
, default=True, help="Leave bug open after landing.") | |
40 comment = make_option("--comment", action="store", type="string", dest="comm
ent", help="Comment to post to bug.") | |
41 component = make_option("--component", action="store", type="string", dest="
component", help="Component for the new bug.") | |
42 confirm = make_option("--no-confirm", action="store_false", dest="confirm",
default=True, help="Skip confirmation steps.") | 32 confirm = make_option("--no-confirm", action="store_false", dest="confirm",
default=True, help="Skip confirmation steps.") |
43 description = make_option("-m", "--description", action="store", type="strin
g", dest="description", help="Description string for the attachment") | |
44 email = make_option("--email", action="store", type="string", dest="email",
help="Email address to use in ChangeLogs.") | |
45 force_clean = make_option("--force-clean", action="store_true", dest="force_
clean", default=False, help="Clean working directory before applying patches (re
moves local changes and commits)") | |
46 git_commit = make_option("-g", "--git-commit", action="store", dest="git_com
mit", help="Operate on a local commit. If a range, the commits are squashed into
one. <ref>.... includes the working copy changes. UPSTREAM can be used for the
upstream/tracking branch.") | 33 git_commit = make_option("-g", "--git-commit", action="store", dest="git_com
mit", help="Operate on a local commit. If a range, the commits are squashed into
one. <ref>.... includes the working copy changes. UPSTREAM can be used for the
upstream/tracking branch.") |
47 local_commit = make_option("--local-commit", action="store_true", dest="loca
l_commit", default=False, help="Make a local commit for each applied patch") | |
48 non_interactive = make_option("--non-interactive", action="store_true", dest
="non_interactive", default=False, help="Never prompt the user, fail as fast as
possible.") | |
49 obsolete_patches = make_option("--no-obsolete", action="store_false", dest="
obsolete_patches", default=True, help="Do not obsolete old patches before postin
g this one.") | |
50 open_bug = make_option("--open-bug", action="store_true", dest="open_bug", d
efault=False, help="Opens the associated bug in a browser.") | |
51 parent_command = make_option("--parent-command", action="store", dest="paren
t_command", default=None, help="(Internal) The command that spawned this instanc
e.") | 34 parent_command = make_option("--parent-command", action="store", dest="paren
t_command", default=None, help="(Internal) The command that spawned this instanc
e.") |
52 quiet = make_option("--quiet", action="store_true", dest="quiet", default=Fa
lse, help="Produce less console output.") | 35 quiet = make_option("--quiet", action="store_true", dest="quiet", default=Fa
lse, help="Produce less console output.") |
53 request_commit = make_option("--request-commit", action="store_true", dest="
request_commit", default=False, help="Mark the patch as needing auto-commit afte
r review.") | |
54 review = make_option("--no-review", action="store_false", dest="review", def
ault=True, help="Do not mark the patch for review.") | |
55 reviewer = make_option("-r", "--reviewer", action="store", type="string", de
st="reviewer", help="Update ChangeLogs to say Reviewed by REVIEWER.") | |
56 suggest_reviewers = make_option("--suggest-reviewers", action="store_true",
default=False, help="Offer to CC appropriate reviewers.") | |
57 test = make_option("--test", action="store_true", dest="test", default=False
, help="Run run-webkit-tests before committing.") | |
58 update = make_option("--no-update", action="store_false", dest="update", def
ault=True, help="Don't update the working directory.") | |
59 update_changelogs = make_option("--update-changelogs", action="store_true",
dest="update_changelogs", default=False, help="Update existing ChangeLog entries
with new date, bug description, and touched files/functions.") | |
60 changelog_count = make_option("--changelog-count", action="store", type="int
", dest="changelog_count", help="Number of changelogs to parse.") | |
OLD | NEW |