Patchwork D6974: examples: include a sample of how to use black with fix

login
register
mail settings
Submitter phabricator
Date Oct. 5, 2019, 2:06 p.m.
Message ID <differential-rev-PHID-DREV-3c455l5yhj4rfpruyuso-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/41973/
State Superseded
Headers show

Comments

phabricator - Oct. 5, 2019, 2:06 p.m.
durin42 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  It's commented out for now since my patch hasn't landed, but we can
  uncomment it when that lands.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D6974

AFFECTED FILES
  contrib/examples/fix.hgrc

CHANGE DETAILS




To: durin42, #hg-reviewers
Cc: mercurial-devel
phabricator - Oct. 5, 2019, 2:35 p.m.
This revision now requires changes to proceed.
indygreg added a comment.
indygreg requested changes to this revision.


  This needs `hgext/fsmonitor/pywatchman` added to the list.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D6974/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D6974

To: durin42, #hg-reviewers, indygreg
Cc: indygreg, mercurial-devel
phabricator - Oct. 6, 2019, 1:55 p.m.
This revision is now accepted and ready to land.
indygreg added a comment.
indygreg accepted this revision.


  I'll add the fsmonitor exclusion in flight.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D6974/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D6974

To: durin42, #hg-reviewers, indygreg
Cc: indygreg, mercurial-devel

Patch

diff --git a/contrib/examples/fix.hgrc b/contrib/examples/fix.hgrc
--- a/contrib/examples/fix.hgrc
+++ b/contrib/examples/fix.hgrc
@@ -4,3 +4,7 @@ 
 
 rustfmt:command = rustfmt {rootpath}
 rustfmt:pattern = set:**.rs
+
+# We use black, but currently with https://github.com/psf/black/pull/826 applied.
+# black:command = black
+# black:pattern = set:**.py - mercurial/thirdparty/** - "contrib/python-zstandard/**"