Don'ts:

Do:

-- mpm

Rules for tabs and spaces in C

See http://selenic.com/pipermail/mercurial-devel/2009-August/015110.html

Variable conventions

Throughout the code, the following variables usually refer to the same thing:

name

description

fctx

a context.filectx instance

fn, fname

filename

fp

a python file(like) object

Status and Error Messages

Short messages should look like this:

adding foo.txt

Note the following:

Some existing strings don't follow this style and are kept like that for backwards compatibility reasons. But please write all new strings in this style.

The above message should look like this in your code:

ui.status(_('adding %s\n') % filename)

Please note:


CategoryContributing