From: Nathan John Youngman Date: Sun, 16 Mar 2014 22:35:04 +0000 (+1100) Subject: doc: Revise Contribution Guidelines. X-Git-Tag: go1.3beta1~347 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=d5f208c8746a92fa889b9a9121e0d40dcc1deced;p=gostls13.git doc: Revise Contribution Guidelines. Smooth out the setup process for new contributors. * Remove references $GOROOT (often not defined). * Add a note for contributing to subrepositories. * Emphasize that hg mail also uploads the latest copy. LGTM=adg R=golang-codereviews, iant, adg CC=golang-codereviews https://golang.org/cl/74370043 --- diff --git a/doc/contribute.html b/doc/contribute.html index 9c52527f91..b0a1de301d 100644 --- a/doc/contribute.html +++ b/doc/contribute.html @@ -45,10 +45,14 @@ tree to make sure the changes don't break other packages or programs:

-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".

@@ -95,11 +99,11 @@ command.

Configure the extension

-

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 @@ The username 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 during hg 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 during hg 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