[pypy-svn] r33826 - pypy/dist/pypy/tool

guido at codespeak.net guido at codespeak.net
Sat Oct 28 03:24:55 CEST 2006


Author: guido
Date: Sat Oct 28 03:24:33 2006
New Revision: 33826

Modified:
   pypy/dist/pypy/tool/fixeol
Log:
Fixeol now skips symlinks.


Modified: pypy/dist/pypy/tool/fixeol
==============================================================================
--- pypy/dist/pypy/tool/fixeol	(original)
+++ pypy/dist/pypy/tool/fixeol	Sat Oct 28 03:24:33 2006
@@ -61,7 +61,7 @@
             if x not in l: 
                 l.append(x) 
         newignores = "\n".join(l) 
-        print "setting ignores", newignores  
+        print ", setting ignores", newignores  
         path.propset('svn:ignore', newignores) 
     else: 
         print  
@@ -69,6 +69,8 @@
         fixfile(fn) 
 
     for x in path.listdir(lambda x: x.check(dir=1, versioned=True)): 
+        if x.check(link=1):
+            continue
         fixdirectory(x) 
 
 def fixfile(path): 
@@ -96,9 +98,11 @@
         paths = [py.path.svnwc()]
 
     for path in paths: 
-        if path.check(dir=1): 
+        if path.check(link=1):
+            print 'ignoring link', path
+        elif path.check(dir=1): 
             fixdirectory(path) 
-        elif path.check(file=1): 
+        elif path.check(file=1):
             fixfile(path) 
         else: 
             print "ignoring", path 



More information about the Pypy-commit mailing list