Writing Good Changeset Comments

Many Mercurial tools use the first line of a changeset comment as a short-form description of the changeset.

You should thus treat the first line like the subject line of an email message. It should:

1. Good Example

Here is an example of a good changeset comment:

 First stab at the veeblefrotzer subsystem

 Implemented using the McWhirly/O'Blivet technique.

 Displays correctly on the twelfth of every month,
 but doesn't yet work during the other 27-30 days.

This has a few things going for it:

2. Bad Example

Here's a bad example:

 Implemented the veeblefrotzer subsystem, which uses the
 McWhirly/O'Blivet scheme for envolvolution of the subducted
 whingnangle.  See McWhirly, O'Blivet, "Acta Exsanguinata", vol. III,
 chap. 19 for a concise description of the technique, unless you can't
 find the chapter because someone has razored it out and papered it to
 the walls of their cube.

What's so bad about it?

3. See also


ภาษาไทย, 日本語

ChangeSetComments (last edited 2013-01-24 04:46:17 by rcl)