blob: 86d07b29276741c73d28b346f1dd2d2d3171d2d6 [file] [log] [blame]
Russ Cox0e9f3962009-08-08 13:38:40 -07001.TH CODEREVIEW 1
2.SH NAME
3codereview \- review of submitted changes (experimental)
4.SH SYNOPSIS
5.B hg
6.B diff
7.I path ...
8.PP
9.B codereview
10.I path ...
11.PP
12.B codereview
13.B -i
14.I issue
15.I path ...
16.SH DESCRIPTION
17.I Codereview
18uploads suggested changes to the code review server
19.I codereview.appspot.com
20and sends email to reviewers.
21It must be used from within a Plan 9 from User Space tree
22checked out via Mercurial
23(see
24.IR hg (1)).
25.PP
26A developer makes changes to a local copy of the tree
27and reviews them locally using
28.I hg
29.I diff .
30When the changes are ready for external review, the
31developer creates a review issue by running
32.I codereview
33naming the files to be reviewed.
34.I Codereview
35prompts for a Google Accounts user name
36and password to log in to
37.I http://codereview.appspot.com/
38and create a new review issue.
39Once created, it prints a line like
40.EX
41Issue created. URL: http://codereview.appspot.com/96161
42.EE
43among other output.
44.PP
45The reviewer will likely respond with comments
46and suggestions for improving the submission.
47After making the changes, reupload by repeating
48the
49.I codereview
50command with the
51.B -i
52option to specify the issue number
53(in the above example, 96161).
54.PP
55Once the reviewer accepts the changes, they will be applied
56automatically using the patch uploaded to the review server.
57To update the local tree, run
58.I hg
59.I pull
60with the
61.B -u
62option.
63.SH SEE ALSO
64.HR http://codereview.appspot.com/
65.SH BUGS
66The
67.I codereview
68command should be replaced by a proper Mercurial extension.
69.PP
70Making changes to the repository via patches
71discards the executable bit on new shell scripts.