Fixed a little issue in the subversion plug-in.

Sat, 05 Feb 2011 14:21:37 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 05 Feb 2011 14:21:37 +0100
changeset 878
a61710d5bbbc
parent 877
4c8dbf3a7e91
child 880
52ed20236a1c

Fixed a little issue in the subversion plug-in.

Plugins/VcsPlugins/vcsSubversion/SvnDialog.py file | annotate | diff | comparison | revisions
--- 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