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

hpk at codespeak.net hpk at codespeak.net
Tue Jul 12 15:17:37 CEST 2005


Author: hpk
Date: Tue Jul 12 15:17:35 2005
New Revision: 14544

Modified:
   py/dist/py/path/svn/urlcommand.py
   py/dist/py/path/svn/wccommand.py
Log:
some fixes for the (flaky, anyway) error-handling 



Modified: py/dist/py/path/svn/urlcommand.py
==============================================================================
--- py/dist/py/path/svn/urlcommand.py	(original)
+++ py/dist/py/path/svn/urlcommand.py	Tue Jul 12 15:17:35 2005
@@ -171,6 +171,8 @@
             except process.cmdexec.Error, e:
                 if e.err.find('non-existent in that revision') != -1:
                     raise py.error.ENOENT(self, e.err)
+                elif e.err.find('File not found') != -1:
+                    raise py.error.ENOENT(self, e.err)
                 elif e.err.find('not part of a repository')!=-1:
                     raise py.error.ENOENT(self, e.err)
                 elif e.err.find('Unable to open')!=-1:

Modified: py/dist/py/path/svn/wccommand.py
==============================================================================
--- py/dist/py/path/svn/wccommand.py	(original)
+++ py/dist/py/path/svn/wccommand.py	Tue Jul 12 15:17:35 2005
@@ -68,7 +68,9 @@
         try:
             out = py.process.cmdexec(string)
         except py.process.cmdexec.Error, e:
-            if e.err.find('File Exists'):
+            if e.err.find('File not found') != -1: 
+                raise py.error.ENOENT(self) 
+            if e.err.find('File Exists') != -1:
                 raise py.error.EEXIST(self)
             raise
         return out



More information about the pytest-commit mailing list