D7617: fix: make example fix hgrc work in subdirs
spectral (Kyle Lippincott)
phabricator at mercurial-scm.org
Thu Dec 12 19:38:20 EST 2019
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
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/**"
To: spectral, #hg-reviewers
Cc: mharbison72, mercurial-devel
More information about the Mercurial-devel
mailing list