Title: [265304] trunk/Tools
Revision
265304
Author
[email protected]
Date
2020-08-05 14:08:05 -0700 (Wed, 05 Aug 2020)

Log Message

Make report-non-inclusive-language ignore files within .svn and .git
https://bugs.webkit.org/show_bug.cgi?id=215156

Reviewed by Darin Adler.

* Scripts/report-non-inclusive-language:

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (265303 => 265304)


--- trunk/Tools/ChangeLog	2020-08-05 20:47:16 UTC (rev 265303)
+++ trunk/Tools/ChangeLog	2020-08-05 21:08:05 UTC (rev 265304)
@@ -1,3 +1,12 @@
+2020-08-05  Beth Dakin  <[email protected]>
+
+        Make report-non-inclusive-language ignore files within .svn and .git
+        https://bugs.webkit.org/show_bug.cgi?id=215156
+
+        Reviewed by Darin Adler.
+
+        * Scripts/report-non-inclusive-language:
+
 2020-08-05  Aakash Jain  <[email protected]>
 
         EWS emails about build failure should include relevant error logs

Modified: trunk/Tools/Scripts/report-non-inclusive-language (265303 => 265304)


--- trunk/Tools/Scripts/report-non-inclusive-language	2020-08-05 20:47:16 UTC (rev 265303)
+++ trunk/Tools/Scripts/report-non-inclusive-language	2020-08-05 21:08:05 UTC (rev 265304)
@@ -33,7 +33,8 @@
 #   Clever default for use on WebKit source tree instead of current directory by default.
 #   Report third party sources separately from WebKit project files.
 #   Skip known examples on an exception list that we don't intend to fix.
-#   Replace special cases for ChangeLog, ".order", and ".xcuserstate" files with something smarter.
+#   Replace special cases for ChangeLog, ".order", ".xcuserstate", ".git", ".svn"
+#   files with something smarter.
 
 # Hard-coded for now, could read these out of a file instead.
 # Term, then the regular _expression_ for that term.
@@ -55,6 +56,10 @@
 root = os.getcwd()
 for subroot, directories, files in os.walk(root):
     prefix = subroot[len(root) + 1:]
+    if ".svn" in prefix:
+        continue
+    if ".git" in prefix:
+        continue
     for file in files:
         if file.startswith("ChangeLog"):
             continue
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to