Plugins/VcsPlugins/vcsPySvn/SvnChangeListsDialog.py

branch
Py2 comp.
changeset 3057
10516539f238
parent 2525
8b507a9a2d40
parent 3009
bf5ae5d7477d
child 3141
72f3bde98c58
diff -r 9986ec0e559a -r 10516539f238 Plugins/VcsPlugins/vcsPySvn/SvnChangeListsDialog.py
--- a/Plugins/VcsPlugins/vcsPySvn/SvnChangeListsDialog.py	Tue Oct 15 22:03:54 2013 +0200
+++ b/Plugins/VcsPlugins/vcsPySvn/SvnChangeListsDialog.py	Fri Oct 18 23:00:41 2013 +0200
@@ -14,8 +14,8 @@
 import pysvn
 
 from PyQt4.QtCore import pyqtSlot, Qt, QMutexLocker
-from PyQt4.QtGui import QDialog, QDialogButtonBox, QListWidgetItem, QApplication, \
-    QCursor
+from PyQt4.QtGui import QDialog, QDialogButtonBox, QListWidgetItem, \
+    QApplication, QCursor
 
 from .SvnDialogMixin import SvnDialogMixin
 
@@ -62,7 +62,8 @@
         if current is not None:
             changelist = current.text()
             if changelist in self.changeListsDict:
-                self.filesList.addItems(sorted(self.changeListsDict[changelist]))
+                self.filesList.addItems(
+                    sorted(self.changeListsDict[changelist]))
     
     def start(self, path):
         """
@@ -73,14 +74,16 @@
         self.changeListsDict = {}
         self.cancelled = False
         
-        self.filesLabel.setText(self.trUtf8("Files (relative to {0}):").format(path))
+        self.filesLabel.setText(
+            self.trUtf8("Files (relative to {0}):").format(path))
         
         QApplication.setOverrideCursor(QCursor(Qt.WaitCursor))
         QApplication.processEvents()
         
         locker = QMutexLocker(self.vcs.vcsExecutionMutex)
         try:
-            entries = self.client.get_changelist(path, depth=pysvn.depth.infinity)
+            entries = self.client.get_changelist(
+                path, depth=pysvn.depth.infinity)
             for entry in entries:
                 file = entry[0]
                 changelist = entry[1]
@@ -107,7 +110,8 @@
         
         if len(self.changeListsDict) == 0:
             self.changeLists.addItem(self.trUtf8("No changelists found"))
-            self.buttonBox.button(QDialogButtonBox.Close).setFocus(Qt.OtherFocusReason)
+            self.buttonBox.button(QDialogButtonBox.Close).setFocus(
+                Qt.OtherFocusReason)
         else:
             self.changeLists.setCurrentRow(0)
             self.changeLists.setFocus(Qt.OtherFocusReason)

eric ide

mercurial