OLD | NEW |
1 <!-- Contributing to the Go project --> | 1 <!-- Contributing to the Go project --> |
2 | 2 |
3 <h2 id="Introduction">Introduction</h2> | 3 <h2 id="Introduction">Introduction</h2> |
4 | 4 |
5 <p> | 5 <p> |
6 This document explains how to contribute changes to the Go project. | 6 This document explains how to contribute changes to the Go project. |
7 It assumes you have installed Go using the | 7 It assumes you have installed Go using the |
8 <a href="install.html">installation instructions</a> and | 8 <a href="install.html">installation instructions</a> and |
9 have <a href="code.html">written and tested your code</a>. | 9 have <a href="code.html">written and tested your code</a>. |
10 (Note that the <code>gccgo</code> frontend lives elsewhere; | 10 (Note that the <code>gccgo</code> frontend lives elsewhere; |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 <a href="#copyright">copyright purposes</a>. | 96 <a href="#copyright">copyright purposes</a>. |
97 </p> | 97 </p> |
98 | 98 |
99 <p> | 99 <p> |
100 To help ensure changes are only created by <code>hg submit</code>, | 100 To help ensure changes are only created by <code>hg submit</code>, |
101 the code review extension disables the standard <code>hg commit</code> | 101 the code review extension disables the standard <code>hg commit</code> |
102 command. | 102 command. |
103 </p> | 103 </p> |
104 | 104 |
105 <p> | 105 <p> |
106 Mercurial power users: To allow Go contributors to take advantage of | 106 Mercurial power users: if you prefer to use the Mercurial Queues extension, see |
107 Mercurial's functionality for local revision control, it might be interesting | 107 <a href="codereview_with_mq.html">Using Mercurial Queues with Codereview</a>. |
108 to explore how the code review extension can be made to work alongside | |
109 the Mercurial Queues extension. | |
110 </p> | 108 </p> |
111 | 109 |
112 <h3>Configure the extension</h3> | 110 <h3>Configure the extension</h3> |
113 | 111 |
114 <p>Edit <code>$GOROOT/.hg/hgrc</code> to add:</p> | 112 <p>Edit <code>$GOROOT/.hg/hgrc</code> to add:</p> |
115 | 113 |
116 <pre> | 114 <pre> |
117 [extensions] | 115 [extensions] |
118 codereview = YOUR_GO_ROOT/lib/codereview/codereview.py | 116 codereview = YOUR_GO_ROOT/lib/codereview/codereview.py |
119 | 117 |
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
521 This rigmarole needs to be done only for your first submission. | 519 This rigmarole needs to be done only for your first submission. |
522 </p> | 520 </p> |
523 | 521 |
524 <p>Code that you contribute should use the standard copyright header:</p> | 522 <p>Code that you contribute should use the standard copyright header:</p> |
525 | 523 |
526 <pre> | 524 <pre> |
527 // Copyright 2010 The Go Authors. All rights reserved. | 525 // Copyright 2010 The Go Authors. All rights reserved. |
528 // Use of this source code is governed by a BSD-style | 526 // Use of this source code is governed by a BSD-style |
529 // license that can be found in the LICENSE file. | 527 // license that can be found in the LICENSE file. |
530 </pre> | 528 </pre> |
OLD | NEW |