[py-svn] r14880 - py/dist/py/path/svn

hpk at codespeak.net hpk at codespeak.net
Thu Jul 21 18:48:59 CEST 2005


Author: hpk
Date: Thu Jul 21 18:48:58 2005
New Revision: 14880

Modified:
   py/dist/py/path/svn/wccommand.py
Log:
made the string-parsing logic for svn error discovery
more robust. 


Modified: py/dist/py/path/svn/wccommand.py
==============================================================================
--- py/dist/py/path/svn/wccommand.py	(original)
+++ py/dist/py/path/svn/wccommand.py	Thu Jul 21 18:48:58 2005
@@ -68,9 +68,10 @@
         try:
             out = py.process.cmdexec(string)
         except py.process.cmdexec.Error, e:
-            if e.err.find('File not found') != -1: 
+            strerr = e.err.lower()
+            if strerr.find('file not found') != -1: 
                 raise py.error.ENOENT(self) 
-            if e.err.find('File Exists') != -1:
+            if strerr.find('file exists') != -1:
                 raise py.error.EEXIST(self)
             raise
         return out



More information about the pytest-commit mailing list