Changeset 53679 in webkit
- Timestamp:
- Jan 21, 2010 10:37:57 PM (14 years ago)
- Location:
- trunk/WebKitSite
- Files:
-
- 3 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKitSite/ChangeLog
r53117 r53679 1 2010-01-21 Chris Jerdonek <cjerdonek@webkit.org> 2 3 Reviewed by David Levin. 4 5 Added screenshots and clearer instructions on how to submit 6 a patch for review. 7 8 https://bugs.webkit.org/show_bug.cgi?id=32542 9 10 Also added that a bug report should be selected or created 11 prior to submitting a patch. 12 13 * coding/contributing.html: 14 * coding/images: Added. 15 * coding/images/contribute_add_attachment.png: Added. 16 * coding/images/contribute_mark_review.png: Added. 17 1 18 2010-01-11 Maciej Stachowiak <mjs@apple.com> 2 19 -
trunk/WebKitSite/coding/contributing.html
r51733 r53679 1 <?php 1 <?php 2 2 $title="Contributing Code"; 3 include("../header.inc"); 3 $extra_head_content = <<<END 4 <style type="text/css"> 5 img { 6 border:1px solid black 7 } 8 </style> 9 10 11 END; 12 13 include("../header.inc"); 4 14 ?> 5 15 <h2>Contributing Code</h2> 6 <p>Contributing code to the WebKit project is a straightforward process. 7 The project maintains several <a href="scripts.html">scripts</a> 8 to assist you with this process.</p> 16 <p>This page describes how to contribute changes to the WebKit 17 source control repository. 18 The WebKit project maintains several <a href="scripts.html">scripts</a> 19 to assist you. This page assumes you already know how to 20 <a href="/building/checkout.html">check out</a> and 21 <a href="/building/build.html">build</a> the code.</p> 9 22 10 <p>Once you have <a href="/building/checkout.html">checked out</a>, 11 <a href="/building/build.html">built</a>, and made your changes to the code, 12 you'll need to do a few things to get your changes landed in the tree:</p> 23 <h3>Overview</h3> 24 <p>Below are the recommended steps. 25 Later sections of this page explain each step in more detail. 26 </p> 13 27 14 28 <ol> 29 <li>Choose or create a <a href="#bugreport">bug report</a> to work on.</li> 30 <li>Complete your changes.</li> 15 31 <li>Make sure your changes meet the <a href="/coding/coding-style.html">code 16 32 style guidelines</a>. The <tt>check-webkit-style</tt> script may be of … … 21 37 <li>Prepare a change log entry. You may have to add entries to multiple ChangeLogs. The <tt>prepare-ChangeLog</tt> script will create stub entries for you. See the <a href="#changelogs">paragraph about ChangeLogs</a> below.</li> 22 38 <li>Create the patch using the <tt>svn-create-patch</tt> script.</li> 23 <li>Upload the patch for review. In Bugzilla, be sure to mark your file as a patch and set the <tt>review:?</tt> flag.</li> 39 <li><a href="#submit">Submit</a> your patch for review to 40 <a href="https://bugs.webkit.org/">bugs.webkit.org</a>.</li> 24 41 <li>Make any changes recommended by the reviewer.</li> 25 42 <li>Once reviewed, ask someone to land your patch or mark it for <a href="#commitqueue">automated commit</a>. … … 28 45 29 46 <p>More detail about these steps is below.</p> 47 48 <h3 id="bugreport">Choose a bug report</h3> 49 <p>The <a href="https://bugs.webkit.org/">bugs.webkit.org</a> database 50 is the central point of communication for contributions to WebKit. 51 Nearly every contribution corresponds to a bug report there. 52 Note that WebKit uses bug reports to track all types of code changes 53 and not just bug fixes. 54 </p> 55 56 <p>Choose a bug report to work on. You can also create a new report. 57 Be sure to search the database before creating new reports to avoid 58 duplication.</p> 59 60 <p>After choosing a bug report, follow the 61 WebKit <a href="/quality/lifecycle.html">bug life cycle</a> guidelines 62 for the report. For example, it is often good practice to comment 63 in a report if you are working on that issue. If your change 64 may be controversial, you may want to check in advance with the 65 <a href="http://lists.webkit.org/mailman/listinfo/webkit-dev"> 66 webkit-dev</a> mailing list.</p> 30 67 31 68 <h3>Code Style Guidelines</h3> … … 61 98 62 99 <h3>Create the patch</h3> 63 <p>WebKit uses <tt>svn-create-patch</tt> to create patches. The 64 <tt>svn-create-patch</tt> script is a small wrapper around Subversion's 100 <p>WebKit uses <tt>svn-create-patch</tt> to create patches. The 101 <tt>svn-create-patch</tt> script is a small wrapper around Subversion's 65 102 <tt>diff</tt> command that better handles moved, added, and deleted files. 66 This command is best run from the top level of your checkout 67 to make sure no changes are left out of your patch. It is not necessary to 103 This command is best run from the top level of your checkout 104 to make sure no changes are left out of your patch. It is not necessary to 68 105 break a patch into multiple files.</p> 69 106 … … 72 109 <p class="code">svn-create-patch > MyExcellentPatch.txt</p> 73 110 74 <h3>Patch review</h3> 75 <p>Once you have a patch file, one of the approved WebKit reviewers must review it. 76 To request a review, attach the patch to the bug report, and mark the patch with the flag <tt>review:?</tt>. The reviewer will typically either approve the patch 111 <h3 id="submit">Submit your patch</h3> 112 <p>Submit your patch by clicking the "Add an attachment" link in the 113 <a href="#bugreport">bug report</a> you chose for your contribution.</p> 114 115 <p><img src="images/contribute_add_attachment.png" 116 alt='Bugzilla "Add an attachment" link'></p> 117 118 <p>Complete the attachment form by doing at least the following: 119 <ol> 120 <li>Browse to your patch file in the File field.</li> 121 <li>Type a brief description in the Description field, for example 122 "Proposed patch."</li> 123 <li>Check the "patch" checkbox (see picture below).</li> 124 <li>Select the question mark "?" in the "review" pull-down 125 (see picture below).</li> 126 <li>Click Submit at the bottom.</li> 127 </ol> 128 </p> 129 130 <p><img src="images/contribute_mark_review.png" 131 alt="Bugzilla patch-submission options"></p> 132 133 <p>The patch checkbox and the <tt>review:?</tt> flag signal to 134 WebKit reviewers that your patch is ready for review. 135 Setting the review flag also sends an automatic e-mail to the 136 <a href="http://lists.webkit.org/mailman/listinfo/webkit-reviews"> 137 webkit-reviews</a> mailing list which some reviewers subscribe to. 138 </p> 139 140 <h3>Respond to reviewers</h3> 141 <p>A WebKit reviewer must approve your patch before WebKit can accept 142 it into the source control repository. 143 A reviewer will typically either approve your patch 77 144 (by responding with an <tt>r=me</tt> in the bug report and marking the patch <tt>review:+</tt>) or request revisions 78 to thepatch (and mark the patch <tt>review:-</tt>). In rare cases a patch may be permanently rejected, meaning that the reviewer145 to your patch (and mark the patch <tt>review:-</tt>). In rare cases a patch may be permanently rejected, meaning that the reviewer 79 146 believes the feature should never be committed to the tree. The review process can consist of multiple iterations between you and 80 the reviewer as revisions are made to your patch.</p>147 the reviewer as you submit revised patches.</p> 81 148 82 149 <h3 id="landing">Landing in the tree</h3>
Note: See TracChangeset
for help on using the changeset viewer.