changeset 46893:3d32b9759047

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
author Matt Harbison <matt_harbison@yahoo.com>
date Mon, 05 Apr 2021 13:02:51 -0400
parents 4a6024b87dfc
children fe34c75f62ab
files contrib/examples/fix.hgrc
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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