Note:

This page is primarily intended for developers of Mercurial.

Coding Style

How to make build a consistent user experience.

/!\ This is a early draft to be filled and reviewed more widely.

1. commands

1.1. adding new commands

1.2. naming commands

2. argument

2.1. naming arguments

2.2. common arguments

3. config

4. adding new sections

5. adding new options

6. naming config options

7. output

7.1. general output

7.2. error message

abort: uncommitted changes
("use 'hg status' to list changes")

abort: push creates new remote head 02793c56c8d3!
(merge or see "hg help push" for details about pushing new heads)

7.3. color

8. help text