Plugins/VcsPlugins/vcsPySvn/SvnRepoBrowserDialog.py

branch
Py2 comp.
changeset 3057
10516539f238
parent 2525
8b507a9a2d40
parent 3009
bf5ae5d7477d
child 3058
0a02c433f52d
--- a/Plugins/VcsPlugins/vcsPySvn/SvnRepoBrowserDialog.py	Tue Oct 15 22:03:54 2013 +0200
+++ b/Plugins/VcsPlugins/vcsPySvn/SvnRepoBrowserDialog.py	Fri Oct 18 23:00:41 2013 +0200
@@ -12,8 +12,8 @@
 import pysvn
 
 from PyQt4.QtCore import QMutexLocker, Qt, pyqtSlot
-from PyQt4.QtGui import QCursor, QHeaderView, QDialog, QApplication, QDialogButtonBox, \
-    QTreeWidgetItem
+from PyQt4.QtGui import QCursor, QHeaderView, QDialog, QApplication, \
+    QDialogButtonBox, QTreeWidgetItem
 
 from E5Gui import E5MessageBox
 
@@ -90,7 +90,8 @@
         """
         Private method to generate a tree item in the repository tree.
         
-        @param parent parent of the item to be created (QTreeWidget or QTreeWidgetItem)
+        @param parent parent of the item to be created (QTreeWidget or
+            QTreeWidgetItem)
         @param repopath path of the item (string)
         @param revision revision info (string or pysvn.opt_revision_kind)
         @param author author info (string)
@@ -165,7 +166,8 @@
                         continue
                     if firstTime:
                         if dirent["repos_path"] != "/":
-                            repoUrl = dirent["path"].replace(dirent["repos_path"], "")
+                            repoUrl = dirent["path"].replace(
+                                dirent["repos_path"], "")
                         else:
                             repoUrl = dirent["path"]
                         if repoUrl != url:
@@ -175,9 +177,11 @@
                             itm.setExpanded(True)
                             parent = itm
                             urlPart = repoUrl
-                            for element in dirent["repos_path"].split("/")[:-1]:
+                            for element in \
+                                    dirent["repos_path"].split("/")[:-1]:
                                 if element:
-                                    urlPart = "{0}/{1}".format(urlPart, element)
+                                    urlPart = "{0}/{1}".format(urlPart,
+                                                               element)
                                     itm = self.__generateItem(parent, element,
                                         "", "", 0, "", pysvn.node_kind.dir,
                                         urlPart)

eric ide

mercurial