Patchwork D7304: formatting: remove another data-ogre from the config example

login
register
mail settings
Submitter phabricator
Date Nov. 7, 2019, 12:01 p.m.
Message ID <differential-rev-PHID-DREV-zev5ajng7z4ol75dob7f-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/42900/
State Superseded
Headers show

Comments

phabricator - Nov. 7, 2019, 12:01 p.m.
martinvonz created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  The fix extension will pass the contents on stdin and read the output
  from stdout. By invoking `rustfmt` as `rustfmt {rootpath}`, we tell
  rustfmt to format the given path and update it on disk. That also
  makes rustftm not produce the formatted output to stdout. So the fix
  extension ends up writing out empty files.

REPOSITORY
  rHG Mercurial

BRANCH
  default

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

AFFECTED FILES
  contrib/examples/fix.hgrc

CHANGE DETAILS




To: martinvonz, #hg-reviewers
Cc: mercurial-devel
phabricator - Nov. 8, 2019, 9:06 a.m.
Alphare added a comment.


  Thanks, I was going to get bitten by this!

REPOSITORY
  rHG Mercurial

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

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

To: martinvonz, #hg-reviewers
Cc: Alphare, 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
@@ -2,7 +2,7 @@ 
 clang-format:command = clang-format --style file -i
 clang-format:pattern = (**.c or **.cc or **.h) and not "listfile:contrib/clang-format-ignorelist"
 
-rustfmt:command = rustfmt {rootpath}
+rustfmt:command = rustfmt
 rustfmt:pattern = set:**.rs
 
 black:command = black --config=black.toml -