Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F144817538
D16730.id46739.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
3 KB
Referenced Files
None
Subscribers
None
D16730.id46739.diff
View Options
Index: en_US.ISO8859-1/articles/committers-guide/article.xml
===================================================================
--- en_US.ISO8859-1/articles/committers-guide/article.xml
+++ en_US.ISO8859-1/articles/committers-guide/article.xml
@@ -2302,6 +2302,81 @@
</sect2>
</sect1>
+ <sect1 xml:id="pre-commit-review">
+ <title>Pre-Commit Review</title>
+
+ <para>Code review is one way to increase the quality of software.
+ The FreeBSD Project encourages all committers to follow these
+ guidelines:</para>
+ <itemizedlist>
+ <listitem>
+ <para>All non-trivial changes should be reviewed before they
+ are committed to the repository.</para>
+ </listitem>
+
+ <listitem>
+ <para>Reviews may be conducted by email, in
+ <application>Bugzilla</application>, in
+ <application>Phabrictor</application>, or by other
+ mechanism. Where possible, reviews should be public.</para>
+ </listitem>
+
+ <listitem>
+ <para>The developer responsible for a code change is also
+ responsible for making all necessary review-related
+ changes.</para>
+ </listitem>
+
+ <listitem>
+ <para>Code review can be an iterative process, which continues
+ until the patch is ready to be committed. Specifically,
+ once a patch is sent out for review, it should receive an
+ explicit “looks good” before it is committed.</para>
+ </listitem>
+ </itemizedlist>
+
+ <para>Sometimes code reviews will take longer than you would hope
+ for, especially for larger features. Accepted ways to speed up
+ review times for your patches are:</para>
+
+ <itemizedlist>
+ <listitem>
+ <para>Review other people’s patches. If you help out,
+ everybody will be more willing to do the same for you;
+ goodwill is our currency.</para>
+ </listitem>
+
+ <listitem>
+ <para>Ping the patch. If it is urgent, provide reasons why
+ it is important to you to get this patch landed and ping
+ it every couple of days. If it is not urgent, the common
+ courtesy ping rate is one week. Remember that you’re
+ asking for valuable time from other professional
+ developers.</para>
+ </listitem>
+
+ <listitem>
+ <para>Ask for help on mailing lists, IRC, etc. Others
+ may be able to either help you directly, or suggest a
+ reviewer.</para>
+ </listitem>
+
+ <listitem>
+ <para>Split your patch into multiple smaller patches that
+ build on each other. The smaller your patch, the higher
+ the probability that somebody will take a quick look at
+ it.</para>
+ </listitem>
+ </itemizedlist>
+
+ <para>Developers should participate in code reviews as both
+ reviewers and reviewees. If someone is kind enough to review
+ your code, you should return the favor for someone else. Note
+ that anyone is welcome to review and give feedback on a patch,
+ but only people with an appropriate commit bit can approve
+ it.</para>
+ </sect1>
+
<sect1 xml:id="commit-log-message">
<title>Commit Log Messages</title>
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Feb 14, 1:01 AM (16 h, 35 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28683576
Default Alt Text
D16730.id46739.diff (3 KB)
Attached To
Mode
D16730: Committers Guide: Add a section encouraging pre-commit review.
Attached
Detach File
Event Timeline
Log In to Comment