From d5f208c8746a92fa889b9a9121e0d40dcc1deced Mon Sep 17 00:00:00 2001
From: Nathan John Youngman
-cd $GOROOT/src -./all.bash # On Windows, run all.bat +$ cd go/src +$ ./all.bash+
+(To build under Windows use all.bat
.)
+
After running for a while, the command should print "ALL TESTS PASSED
".
Edit $GOROOT/.hg/hgrc
to add:
Edit .hg/hgrc
in the root of your Go checkout to add:
[extensions] -codereview = $GOROOT/lib/codereview/codereview.py +codereview = /path/to/go/lib/codereview/codereview.py [ui] username = Your Name <you@server.dom> @@ -110,6 +114,16 @@ Theusername
information will not be used unless you are a committer (see below), but Mercurial complains if it is missing. ++As the codereview extension is only enabled for your Go checkout, the remainder of this document assumes you +are inside the go directory when issuing commands. +
+ +To contribute to subrepositories, edit the
+.hg/hgrc
for each +subrepository in the same way. For example, add the codereview extension to +code.google.com/p/go.tools/.hg/hgrc
. +Understanding the extension
After adding the code review extension, you can run
@@ -126,15 +140,9 @@ $ hg help change
-As the codereview extension is only enabled for your checkout
-in $GOROOT
, the remainder of this document assumes you
-are inside $GOROOT
when issuing commands.
-
-Windows users may need to perform extra steps to get the code review +Windows users may need to perform extra steps to get the code review extension working. See the -CodeReview page +CodeReview page on the Go Wiki for details.
@@ -155,7 +163,6 @@ application-specific password and use that when prompted for a password.-$ cd $GOROOT $ hg code-login Email (login for uploading to codereview.appspot.com): rsc@golang.org Password for rsc@golang.org: @@ -473,31 +480,33 @@ to send comments back.Revise and upload
-You will probably revise your code in response to the reviewer comments. When -you have done this, you can upload your change to the code review server -without sending a notification by running
hg upload
using the change -list number assigned duringhg change
+When you have revised the code and are ready for another round of review, +you can upload your change and send mail asking the reviewers to +please take another look (PTAL
). Use the change list number +assigned duringhg change
-$ hg upload 99999 +$ hg mail 99999+-When you have revised the code and are ready for another round of review, run +Or to upload your change without sending a notification, run
-$ hg mail 99999 +$ hg upload 99999-again to upload the latest copy and send mail asking the reviewers to please take another look -(
PTAL
). ++You will probably revise your code in response to the reviewer comments. You might also visit the code review web page and reply to the comments, letting the reviewer know that you've addressed them or explain why you haven't. When you're done replying, click “Publish and Mail comments” to send the line-by-line replies and any other comments.
+The reviewer can comment on the new copy, and the process repeats. The reviewer approves the change by replying with a mail that says -- 2.50.0