[m-rev.] www for review: Update reviews process document
paul at bone.id.au
Thu Feb 6 12:49:09 AEDT 2014
For review by anyone.
Update reviews process document
We now use git and github and so the reviews process is slightly
different. This change updates the reviews document to account for this.
Update the reviews process documentation.
Fix some ironic spelling errors. If these errors were deliberate irony
I'm sorry, I'd prefer that we spelt things correctly in documentation.
development/developers/reviews.html | 108 ++++++++++++++++++++----------------
1 file changed, 61 insertions(+), 47 deletions(-)
diff --git a/development/developers/reviews.html b/development/developers/reviews.html
index f956a00..02f886e 100644
@@ -35,24 +35,46 @@ need to be reviewed.
<li> Make sure you are working with an up-to-date copy of the
module you are using.
-<li> If change is a code change, test change. See "Testing" section
+<li> If the change is a code change, test change. See "Testing" section
of coding standards. Testing may take time - don't forget
that steps 3, 4 and 5 can be done in parallel.
-<li> Create diff - use `cvs diff -u'. New files should be
+<li> Write a log message for this change - use template (see below). How
+ you include this will depend on the next step.
+<li> Create a diff.
+ There are two ways to do this, you can either use git and github to
+ create a pull request (see
+ <a href="https://help.github.com/articles/using-pull-requests">Github's
+ or create one or more changes and mail them to us using either
+ <code>git diff</code> or by creating series of commits and using
+ <code>git format-patch</code> (see the git documentation for
+ You will need to edit the files that format-patch generates to
+ modify the subject line (see below), and to duplicate this line
+ within the e-mail's body.
+ If you create a diff then new files should be
appended verbatim to the end of the diff, with descriptions
indicating the name of the file.
-<li> Write log message for this change - use template (see below).
<li> Review diff and log message yourself. (see below)
-<li> Send to mercury-reviews at cs.mu.oz.au, with the subject
- "for review: <short description of change>".
- Nominate a reviewer at top of diff (see below).
+<li> Submit the pull request or mail the changes to us at
+ <a href="mailto:Mercury Reviews <reviews at lists.mercurylang.org>">
+ Mercury Reviews <reviews at lists.mercurylang.org></a>
+ The subject should be
+ "for review: <short description of change>", the short
+ description is typically the first line of your git log message.
+ Optionally nominate a reviewer at top of diff (see below).
+ Optionally describe which branches your change should be applied to.
(If this change has been reviewed once before, it might
fall into the "commit before review" category -- see the
section on exceptions).
+ If you generated your diffs using <code>git format-patch</code> then
+ you can use <code>git send-email</code> to mail them, or attach them
+ to an e-mail normally.
<li> Wait for review (see below).
-<li> Fix any changes suggested.
+<li> Fix any changes suggested.
<li> Repeat above steps until approval.
-<li> Commit change (see below).
+<li> Push change (see below) if you have repository permissions, if you do
+ not the developer that reviewed your change will help you with this.
@@ -61,7 +83,7 @@ need to be reviewed.
Use the template that cvs provides.
- Estimated hours taken: _____
+ <one-line description (subject)<
<overview or general description of changes>
@@ -69,30 +91,24 @@ Use the template that cvs provides.
<detailed description of changes>
-In estimated hours, include all your time to fix this problem -
-including debugging time.
The description should state why the changes were made, not just what
the changes were. All file modifications related to the same change
-should be committed together, and use the same log message, even over
-multiple directories. The reason for this is that the log messages can
-be viewed on a file-by-file basis, and it is useful to know that a small
-change of a file in a subdirectory is related to a larger change in
+should be committed together.
For very small changes, the <overview or general description> can be
-omitted, but the <detailed description> should stay.
+omitted, but the other descriptions should stay.
If adding a new feature, this is a good place to describe the feature,
how it works, how to turn it on and off, and any present limitations of
the feature (note that all this should also be documented within the
-change, as well). If fixing a bug, describe both the bug and the fix.
+change, as well). If fixing a bug, describe both the bug and the fix. If
+the bug is in the bugtracker, also include the bug's number for reference.
@@ -112,11 +128,11 @@ improving the state of documentation of the compiler.
-We're now posting all diffs to mercury-reviews at cs.mu.oz.au.
+We're now posting all diffs to reviews at lists.mercurylang.org.
-The reasons for posting to mercury-reviews are:
+The reasons for posting to reviews are:
<li> To increase everyone's awareness of what changes are taking
@@ -126,10 +142,10 @@ The reasons for posting to mercury-reviews are:
the uncommitted work of others, so they may want to give
<li> Allow other people to read the reviewer's comments - so the same
- problems don't have to be explained again and again.
+ problems don't have to be explained again and again.
<li> People can try to see how your changes worked without having
- to figure out how to get cvs to generate the right set of
+ to figure out how to get git to generate the right set of
<li> Important decisions are often made or justified in reviews, so
these should be recorded.
@@ -161,30 +177,24 @@ or you may be able to just fix a few small problems, then commit.
-<h2> Committing </h2>
-If you have added any new files or directories, then before committing
-you must check the group-id and permissions of the newly created files
-or directories in the CVS repository. Files should be readable by
-group mercury and directories should be both readable and writable by
-group mercury. (Setting of permissions will be enforced by the
-pre-commit check script `CVSROOT/check.pl'.)
+<h2> Pushing changes </h2>
-Use the log message you prepared for the review when committing.
+Use the log message you prepared for the review when committing and pushing
-<h2> Exceptions: Commit before review </h2>
+<h2> Exceptions: Push before review </h2>
-The only time changes should be committed before being reviewed is when they
+The only time changes should be pushed before being reviewed is when they
satisfy all of the following conditions:
-<li> (a) the change is simple
+<li> (a) the change is simple
<li> (b) you are absolutely sure the change will not introduce bugs
@@ -231,7 +241,7 @@ This is particularly true if others are waiting for your work.
Usually, a change that has already been reviewed falls into this
-category, provided you have addressed the reviewers comments, and
+category, provided you have addressed the reviewers comments, and
there are no disputes over design decisions. If the reviewer has
specifically asked for another review, or there were a large number of
comments at the review, you should not commit before a second review.
@@ -249,22 +259,27 @@ The only time changes should be committed without review by a second
person is when they satisfy all of the following conditions:
-<li> (a) it is a very small diff that is obviously correct <br>
- eg: fix typographic errors <br>
- fix syntax errors you accidently introduced <br>
- fix spelling of people's names <br> <p>
+<li> (a) it is a very small diff that is obviously correct eg:
+ <li>fix typographic errors</li>
+ <li>fix syntax errors you accidentally introduced</li>
+ <li>fix spelling of people's names</li>
These usually don't need to be reviewed by a second
person. Make sure that you review your own changes,
though. Also make sure your log message is more
informative than "fixed a typo", try "s/foo/bar" or
something so that if you did make a change that people
don't approve of, at least it's seen quickly.
-<li> (b) it is not going to be publically visible <br>
+<li> (b) it is not going to be publicly visible <br>
eg: Web pages, documentation, library, man pages. <p>
- Changes to publically visible stuff should always be
+ Changes to publicly visible things should always be
reviewed. It's just too easy to make spelling errors,
write incorrect information, commit libel, etc. This
stuff reflects on the whole group, so it shouldn't be
@@ -272,13 +287,12 @@ person is when they satisfy all of the following conditions:
If your change falls into this category, you should still send the
-diff and log message to mercury-reviews, but use the subject line:<br>
+diff and log message to the reviews mailing list, but use the subject line:<br>
"trivial diff: <short description of change>".
-Last update was $Date: 2003/01/15 08:20:13 $ by $Author: mjwybrow $@cs.mu.oz.au. <br>
More information about the reviews