Patchwork D7617: fix: make example fix hgrc work in subdirs

login
register
mail settings
Submitter phabricator
Date Dec. 13, 2019, 12:38 a.m.
Message ID <3b30973300380e75a85037b8f5a2385d@localhost.localdomain>
Download mbox | patch
Permalink /patch/43773/
State Not Applicable
Headers show

Comments

phabricator - Dec. 13, 2019, 12:38 a.m.
spectral updated this revision to Diff 18663.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D7617?vs=18647&id=18663

BRANCH
  default

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

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

AFFECTED FILES
  contrib/examples/fix.hgrc

CHANGE DETAILS




To: spectral, #hg-reviewers
Cc: mharbison72, 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
@@ -1,9 +1,9 @@ 
 [fix]
 clang-format:command = clang-format --style file
-clang-format:pattern = set:(**.c or **.cc or **.h) and not "include:contrib/clang-format-ignorelist"
+clang-format:pattern = set:(rootglob:**.c or rootglob:**.cc or rootglob:**.h) and not "include:contrib/clang-format-ignorelist"
 
 rustfmt:command = rustfmt
-rustfmt:pattern = set:**.rs
+rustfmt:pattern = set:rootglob:**.rs
 
 black:command = black --config=black.toml -
-black:pattern = set:**.py - mercurial/thirdparty/** - "contrib/python-zstandard/**"
+black:pattern = set:rootglob:**.py - rootglob:mercurial/thirdparty/** - "rootglob:contrib/python-zstandard/**"