Fixed a bug in the Subversion interface caused by a change in the svn output.

Fri, 06 Apr 2012 12:36:09 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Fri, 06 Apr 2012 12:36:09 +0200
changeset 1760
ffa7d2983f0a
parent 1758
e18f96b1714b
child 1762
307393ebe9c6

Fixed a bug in the Subversion interface caused by a change in the svn output.

Plugins/VcsPlugins/vcsSubversion/SvnStatusDialog.py file | annotate | diff | comparison | revisions
--- a/Plugins/VcsPlugins/vcsSubversion/SvnStatusDialog.py	Sun Apr 01 19:01:59 2012 +0200
+++ b/Plugins/VcsPlugins/vcsSubversion/SvnStatusDialog.py	Fri Apr 06 12:36:09 2012 +0200
@@ -246,11 +246,17 @@
         if revision == "":
             rev = ""
         else:
-            rev = int(revision)
+            try:
+                rev = int(revision)
+            except ValueError:
+                rev = revision
         if change == "":
             chg = ""
         else:
-            chg = int(change)
+            try:
+                chg = int(change)
+            except ValueError:
+                chg = change
         statusText = self.status[status]
         
         itm = QTreeWidgetItem(self.statusList)

eric ide

mercurial