comparison contrib/examples/fix.hgrc @ 44103:2077ffede71f

examples: refer to nightly rustfmt in Windows-compatible way Thanks to Jun Wu for the tip. I found that the new form also gave better error messages when the nightly rustfmt wasn't installed (it told me which command to run instead of just saying "error: not a file: <some path>"). Differential Revision: https://phab.mercurial-scm.org/D7911
author Martin von Zweigbergk <martinvonz@google.com>
date Thu, 16 Jan 2020 08:41:38 -0800
parents 5e0505d36aee
children 5e84a96d865b
comparison
equal deleted inserted replaced
44102:fdaa4233dc18 44103:2077ffede71f
1 [fix] 1 [fix]
2 clang-format:command = clang-format --style file 2 clang-format:command = clang-format --style file
3 clang-format:pattern = set:(**.c or **.cc or **.h) and not "include:contrib/clang-format-ignorelist" 3 clang-format:pattern = set:(**.c or **.cc or **.h) and not "include:contrib/clang-format-ignorelist"
4 4
5 rustfmt:command = $(rustup which --toolchain nightly rustfmt) 5 rustfmt:command = rustfmt +nightly
6 rustfmt:pattern = set:**.rs 6 rustfmt:pattern = set:**.rs
7 7
8 black:command = black --config=black.toml - 8 black:command = black --config=black.toml -
9 black:pattern = set:**.py - mercurial/thirdparty/** - "contrib/python-zstandard/**" 9 black:pattern = set:**.py - mercurial/thirdparty/** - "contrib/python-zstandard/**"
10 10