Debian Codegraph @

CONTRIBUTING.md

raw
1 # Mercurial's Contributing guidelines
2
3 Our full contribution guidelines are in our wiki, please see:
4
5 <https://www.mercurial-scm.org/wiki/ContributingChanges>
6
7 If you just want a checklist to follow, you can go straight to
8
9 <https://www.mercurial-scm.org/wiki/ContributingChanges#Submission_checklist>
10
11 If you can't run the entire testsuite for some reason (it can be
12 difficult on Windows), please at least run `contrib/check-code.py` on
13 any files you've modified and run `python contrib/check-commit` on any
14 commits you've made (for example, `python contrib/check-commit
15 273ce12ad8f1` will report some style violations on a very old commit).
16
17 ## Development dependencies
18
19 ### Required dependencies
20
21 - Python (see `project.requires-python` in `pyproject.toml`) with `venv` and `pip`
22
23 - `make` with few other standard Unix tools (`diff`, `grep`, `unzip`, `gunzip`, `bunzip2` and `sed`)
24
25 For Windows, see `contrib/install-windows-dependencies.ps1`.
26
27 ### Optional dependencies
28
29 - Mercurial contributors should install a quite recent Mercurial with the
30 extensions `evolve` and `topic` activated.
31
32 - A C compiler and Python headers (typically Debian package `python3-dev`
33 or Microsoft Build Tools for Visual Studio on Windows)
34
35 - `msgfmt` from the Debian package `gettext` (used to build the translations)
36
37 - [Rust tools](https://www.rust-lang.org/tools/install) (see `rust/README.md`)
38
39 #### Note on installation
40
41 Mercurial is a Python application that can be installed with
42 [pipx](https://pipx.pypa.io) and `uv tool`. UV is a Rust application that can also be
43 installed with pipx or with
44 [its own installer](https://docs.astral.sh/uv/getting-started/installation/).
45