mail[Wesnoth-commits] r29070 - /trunk/data/tools/wmllint


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by esr on August 29, 2008 - 04:03:
Author: esr
Date: Fri Aug 29 04:03:51 2008
New Revision: 29070

URL: http://svn.gna.org/viewcvs/wesnoth?rev=29070&view=rev
Log:
Ignore .git directories in wmllint as well.

Modified:
    trunk/data/tools/wmllint

Modified: trunk/data/tools/wmllint
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/data/tools/wmllint?rev=29070&r1=29069&r2=29070&view=diff
==============================================================================
--- trunk/data/tools/wmllint (original)
+++ trunk/data/tools/wmllint Fri Aug 29 04:03:51 2008
@@ -1938,6 +1938,7 @@
         return None
 
 ignore = (".tgz", ".png", ".jpg", "-bak")
+vctypes = (".svn", ".git")
 
 def interesting(fn):
     "Is a file interesting for conversion purposes?"
@@ -1956,8 +1957,9 @@
                 datafiles.append(dir)
     else:
         for root, dirs, files in os.walk(dir):
-            if vcdir in dirs:
-                dirs.remove(vcdir)
+            for vcsubdir in vctypes: 
+                if vcsubdir in dirs:
+                    dirs.remove(vcsubdir)
             for name in files:
                 if interesting(os.path.join(root, name)):
                     datafiles.append(os.path.join(root, name))




Related Messages


Powered by MHonArc, Updated Fri Aug 29 09:21:11 2008