contrib/examples/fix.hgrc
author Augie Fackler <augie@google.com>
Wed, 08 Jan 2020 14:37:01 -0500
changeset 44069 5e0505d36aee
parent 44008 ac72e17457e5
child 44103 2077ffede71f
permissions -rw-r--r--
examples: specify rustfmt nightly using a $() construct This is ugly, but it's how we have to configure rustfmt for now as we require nightly rustfmt. Differential Revision: https://phab.mercurial-scm.org/D7812

[fix]
clang-format:command = clang-format --style file
clang-format:pattern = set:(**.c or **.cc or **.h) and not "include:contrib/clang-format-ignorelist"

rustfmt:command = $(rustup which --toolchain nightly rustfmt)
rustfmt:pattern = set:**.rs

black:command = black --config=black.toml -
black:pattern = set:**.py - mercurial/thirdparty/** - "contrib/python-zstandard/**"

# Mercurial doesn't have any Go code, but if we did this is how we
# would configure `hg fix` for Go:
go:command = gofmt
go:pattern = set:**.go