Patchwork D2974: contrib: rename clang-format-blacklist to clang-format-ignorelist

login
register
mail settings
Submitter phabricator
Date March 30, 2018, 6:36 p.m.
Message ID <differential-rev-PHID-DREV-zovdpla7cnegen7ga2lx-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/29982/
State Superseded
Headers show

Comments

phabricator - March 30, 2018, 6:36 p.m.
indygreg created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  "blacklist" is racially charged. Let's rename it to something
  that isn't.

REPOSITORY
  rHG Mercurial

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

AFFECTED FILES
  Makefile
  contrib/clang-format-blacklist
  contrib/clang-format-ignorelist
  tests/test-check-clang-format.t

CHANGE DETAILS




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

Patch

diff --git a/tests/test-check-clang-format.t b/tests/test-check-clang-format.t
--- a/tests/test-check-clang-format.t
+++ b/tests/test-check-clang-format.t
@@ -3,7 +3,7 @@ 
   $ . "$TESTDIR/helpers-testrepo.sh"
 
   $ cd "$TESTDIR"/..
-  $ for f in `testrepohg files 'set:(**.c or **.cc or **.h) and not "listfile:contrib/clang-format-blacklist"'` ; do
+  $ for f in `testrepohg files 'set:(**.c or **.cc or **.h) and not "listfile:contrib/clang-format-ignorelist"'` ; do
   >   clang-format --style file $f > $f.formatted
   >   cmp $f $f.formatted || diff -u $f $f.formatted
   >   rm $f.formatted
diff --git a/contrib/clang-format-blacklist b/contrib/clang-format-ignorelist
rename from contrib/clang-format-blacklist
rename to contrib/clang-format-ignorelist
diff --git a/Makefile b/Makefile
--- a/Makefile
+++ b/Makefile
@@ -124,7 +124,7 @@ 
 
 format-c:
 	clang-format --style file -i \
-	  `hg files 'set:(**.c or **.cc or **.h) and not "listfile:contrib/clang-format-blacklist"'`
+	  `hg files 'set:(**.c or **.cc or **.h) and not "listfile:contrib/clang-format-ignorelist"'`
 
 update-pot: i18n/hg.pot