contrib: restore the `hg fix` configuration in the examples
authorMatt Harbison <matt_harbison@yahoo.com>
Mon, 05 Apr 2021 13:02:51 -0400
changeset 46893 3d32b9759047
parent 46892 4a6024b87dfc
child 46894 fe34c75f62ab
contrib: restore the `hg fix` configuration in the examples After decc3bd3f20d, running `black` will DTRT, but running `hg fix` did nothing (unless the example config file was %included, in which case it truncated the file instead of formatting it). I'm not sure why that was happening, but let's not leave a code shredder laying around. Differential Revision: https://phab.mercurial-scm.org/D10311
contrib/examples/fix.hgrc
--- a/contrib/examples/fix.hgrc	Wed Mar 31 17:54:02 2021 -0400
+++ b/contrib/examples/fix.hgrc	Mon Apr 05 13:02:51 2021 -0400
@@ -5,7 +5,7 @@
 rustfmt:command = rustfmt +nightly
 rustfmt:pattern = set:"**.rs" - "mercurial/thirdparty/**"
 
-black:command = black
+black:command = black --config=pyproject.toml -
 black:pattern = set:**.py - mercurial/thirdparty/**
 
 # Mercurial doesn't have any Go code, but if we did this is how we