Contributing Changes

Getting Sources

Mercurial is used
to store source code.
The repository can be cloned
with the following command:

hg clone http://hg.nginx.org/nginx

Formatting Changes

Changes should be formatted according to the code style used by nginx.
Code formatting should not rely on such editor features like syntax
highlighting or automatic line breaking.
Below are some basic rules:

maximum text width is 80 characters

indentation is four spaces

no tabs

logical code blocks in a file are separated with two empty lines

Examine how existing nginx sources are formatted and mimic this style
in your code.
Changes will more likely be accepted if style corresponds to the surrounding
code.

Commit the changes to create a Mercurial
changeset.
Please ensure that the specified
e-mail
address and real name of the change’s author are correct.

The commit message should have a single-line synopsis followed by verbose
description after an empty line.
It is desirable that the first line is no longer than 67 symbols.
The resulting changeset as a patch can be obtained using the
hg export command: