Plugins/VcsPlugins/vcsSubversion/SvnDialog.py

changeset 878
a61710d5bbbc
parent 791
9ec2ac20e54e
child 945
8cd4d08fa9f6
child 1510
e75ecf2bd9dd
--- a/Plugins/VcsPlugins/vcsSubversion/SvnDialog.py	Sat Feb 05 12:59:38 2011 +0100
+++ b/Plugins/VcsPlugins/vcsSubversion/SvnDialog.py	Sat Feb 05 14:21:37 2011 +0100
@@ -163,7 +163,7 @@
             if not self.__hasAddOrDelete and len(s) > 0:
                 # check the output
                 for l in s.split(os.linesep):
-                    if l[0].strip() in ['A', 'D']:
+                    if l and l[0].strip() in ['A', 'D']:
                         self.__hasAddOrDelete = True
                         break
         
@@ -238,4 +238,4 @@
         
         @return flag indicating the presence of an add or delete (boolean)
         """
-        return self.__hasAddOrDelete
\ No newline at end of file
+        return self.__hasAddOrDelete

eric ide

mercurial