Installing Go

Follow the instructions at http://golang.org/doc/install.html andhttp://golang.org/doc/contribute.html.

If you are a committer, follow these extra steps to be able to commit directly.

Look up your GoogleCode.com password.

It's on your settings page. If your account name ends in @gmail.com, drop that part.

Customize your Mercurial

Edit $GOROOT/.hg/hgrc or $HOME/.hgrc to add the user name you want to use in the repository history.

Settings in $HOME/.hgrc apply to all your Mercurial clients. Settings in $GOROOT/.hg/hgrc apply only to that client.

Add a section:

[ui]
username = Your Name <email@domain>

This name and email address will be used as the author line for Mercurial checkins. It must match a line in the CONTRIBUTORS file.

Then add a section:

[auth]
go.prefix = code.google.com/p/go
go.username = your@email
go.password = YOUR_RANDOM_PASSWORD
The password is the random string you found in the previous step.

Hide your password from the world:

$ chmod 600 $HOME/.hgrc  # or $GOROOT/.hg/hgrc, whatever you used

Double-check your repository URL

Look in your $GOROOT/.hg/hgrc file. Make sure it says:

[paths]
default = https://code.google.com/p/go/

In particular, make sure it says https, not http, and that the URL is code.google.com/p/go and not the older go.googlecode.com.