Changed the Subversion status dialogs to hide columns with uninteresting information.

Sat, 12 Feb 2011 19:22:28 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 12 Feb 2011 19:22:28 +0100
changeset 889
65585df1d52c
parent 888
16cecff8614d
child 890
b4736e256f8c

Changed the Subversion status dialogs to hide columns with uninteresting information.

Plugins/VcsPlugins/vcsPySvn/SvnStatusDialog.py file | annotate | diff | comparison | revisions
Plugins/VcsPlugins/vcsSubversion/SvnStatusDialog.py file | annotate | diff | comparison | revisions
--- a/Plugins/VcsPlugins/vcsPySvn/SvnStatusDialog.py	Wed Feb 09 19:02:52 2011 +0100
+++ b/Plugins/VcsPlugins/vcsPySvn/SvnStatusDialog.py	Sat Feb 12 19:22:28 2011 +0100
@@ -4,7 +4,8 @@
 #
 
 """
-Module implementing a dialog to show the output of the svn status command process.
+Module implementing a dialog to show the output of the svn status command
+process.
 """
 
 import os
@@ -25,7 +26,8 @@
 
 class SvnStatusDialog(QWidget, SvnDialogMixin, Ui_SvnStatusDialog):
     """
-    Class implementing a dialog to show the output of the svn status command process.
+    Class implementing a dialog to show the output of the svn status command
+    process.
     """
     def __init__(self, vcs, parent = None):
         """
@@ -41,13 +43,19 @@
         self.__changelistColumn = 0
         self.__statusColumn = 1
         self.__propStatusColumn = 2
+        self.__lockedColumn = 3
+        self.__historyColumn = 4
+        self.__switchedColumn = 5
         self.__lockinfoColumn = 6
+        self.__upToDateColumn = 7
         self.__pathColumn = 11
         self.__lastColumn = self.statusList.columnCount()
         
         self.refreshButton = \
-            self.buttonBox.addButton(self.trUtf8("Refresh"), QDialogButtonBox.ActionRole)
-        self.refreshButton.setToolTip(self.trUtf8("Press to refresh the status display"))
+            self.buttonBox.addButton(self.trUtf8("Refresh"), 
+                                     QDialogButtonBox.ActionRole)
+        self.refreshButton.setToolTip(
+            self.trUtf8("Press to refresh the status display"))
         self.refreshButton.setEnabled(False)
         self.buttonBox.button(QDialogButtonBox.Close).setEnabled(False)
         self.buttonBox.button(QDialogButtonBox.Cancel).setDefault(True)
@@ -56,7 +64,8 @@
         self.vcs.committed.connect(self.__committed)
         
         self.statusList.headerItem().setText(self.__lastColumn, "")
-        self.statusList.header().setSortIndicator(self.__pathColumn, Qt.AscendingOrder)
+        self.statusList.header().setSortIndicator(self.__pathColumn,
+                                                  Qt.AscendingOrder)
         if pysvn.svn_version < (1, 5, 0) or pysvn.version < (1, 6, 0):
             self.statusList.header().hideSection(self.__changelistColumn)
         
@@ -74,25 +83,30 @@
             self.menuactions.append(self.menu.addAction(
                 self.trUtf8("Add to Changelist"), self.__addToChangelist))
             self.menuactions.append(self.menu.addAction(
-                self.trUtf8("Remove from Changelist"), self.__removeFromChangelist))
+                self.trUtf8("Remove from Changelist"),
+                self.__removeFromChangelist))
         if self.vcs.versionStr >= '1.2.0':
             self.menu.addSeparator()
             self.menuactions.append(self.menu.addAction(self.trUtf8("Lock"),
                 self.__lock))
             self.menuactions.append(self.menu.addAction(self.trUtf8("Unlock"),
                 self.__unlock))
-            self.menuactions.append(self.menu.addAction(self.trUtf8("Break lock"),
+            self.menuactions.append(self.menu.addAction(
+                self.trUtf8("Break lock"),
                 self.__breakLock))
-            self.menuactions.append(self.menu.addAction(self.trUtf8("Steal lock"),
+            self.menuactions.append(self.menu.addAction(
+                self.trUtf8("Steal lock"),
                 self.__stealLock))
         self.menu.addSeparator()
-        self.menuactions.append(self.menu.addAction(self.trUtf8("Adjust column sizes"),
+        self.menuactions.append(self.menu.addAction(
+            self.trUtf8("Adjust column sizes"),
             self.__resizeColumns))
         for act in self.menuactions:
             act.setEnabled(False)
         
         self.statusList.setContextMenuPolicy(Qt.CustomContextMenu)
-        self.statusList.customContextMenuRequested.connect(self.__showContextMenu)
+        self.statusList.customContextMenuRequested.connect(
+            self.__showContextMenu)
         
         self.modifiedIndicators = [
             self.trUtf8(svnStatusMap[pysvn.wc_status_kind.added]), 
@@ -155,8 +169,9 @@
         self.statusList.header().resizeSections(QHeaderView.ResizeToContents)
         self.statusList.header().setStretchLastSection(True)
         
-    def __generateItem(self, changelist, status, propStatus, locked, history, switched, 
-                       lockinfo, uptodate, revision, change, author, path):
+    def __generateItem(self, changelist, status, propStatus, locked, history,
+                       switched, lockinfo, uptodate, revision, change, author,
+                       path):
         """
         Private method to generate a status item in the status list.
         
@@ -230,6 +245,12 @@
         recurse = "--non-recursive" not in opts
         update = "--show-updates" in opts
         
+        hidePropertyStatusColumn = True
+        hideLockColumns = True
+        hideUpToDateColumn = True
+        hideHistoryColumn = True
+        hideSwitchedColumn = True
+        
         locker = QMutexLocker(self.vcs.vcsExecutionMutex)
         cwd = os.getcwd()
         os.chdir(self.dname)
@@ -242,22 +263,25 @@
                         depth = pysvn.depth.infinity
                     else:
                         depth = pysvn.depth.immediate
-                    changelists = self.client.get_changelist(name, depth = depth)
+                    changelists = self.client.get_changelist(name, depth=depth)
                     for entry in changelists:
                         changelistsDict[entry[0]] = entry[1]
                 self.statusList.setColumnHidden(self.__changelistColumn, 
                                                 len(changelistsDict) == 0)
                 
                 # step 2: determine status of files
-                allFiles = self.client.status(name, recurse = recurse, get_all = verbose, 
-                                              ignore = True, update = update)
+                allFiles = self.client.status(name, recurse = recurse, 
+                                              get_all=verbose, ignore=True,
+                                              update = update)
                 counter = 0
                 for file in allFiles:
                     uptodate = True
                     if file.repos_text_status != pysvn.wc_status_kind.none:
-                        uptodate = uptodate and file.repos_text_status == file.text_status
+                        uptodate = uptodate and \
+                            file.repos_text_status == file.text_status
                     if file.repos_prop_status != pysvn.wc_status_kind.none:
-                        uptodate = uptodate and file.repos_prop_status == file.prop_status
+                        uptodate = uptodate and \
+                            file.repos_prop_status == file.prop_status
                     
                     lockState = " "
                     if file.entry is not None and \
@@ -269,7 +293,8 @@
                             lockState = "B"
                         elif lockState == " " and file.repos_lock is not None:
                             lockState = "O"
-                        elif lockState == "L" and file.repos_lock is not None and \
+                        elif lockState == "L" and \
+                             file.repos_lock is not None and \
                              file.entry.lock_token != file.repos_lock["token"]:
                             lockState = "S"
                     
@@ -278,6 +303,19 @@
                     else:
                         changelist = ""
                     
+                    hidePropertyStatusColumn = hidePropertyStatusColumn and \
+                        file.prop_status in [
+                            pysvn.wc_status_kind.none, 
+                            pysvn.wc_status_kind.normal
+                        ]
+                    hideLockColumns = hideLockColumns and \
+                        not file.is_locked and lockState == " "
+                    hideUpToDateColumn = hideUpToDateColumn and uptodate
+                    hideHistoryColumn = hideHistoryColumn and \
+                        not file.is_copied
+                    hideSwitchedColumn = hideSwitchedColumn and \
+                        not file.is_switched
+                    
                     self.__generateItem(
                         changelist, 
                         file.text_status, 
@@ -302,13 +340,28 @@
                     break
         except pysvn.ClientError as e:
             self.__showError(e.args[0]+'\n')
+        
+        self.statusList.setColumnHidden(self.__propStatusColumn,
+                                        hidePropertyStatusColumn)
+        self.statusList.setColumnHidden(self.__lockedColumn,
+                                        hideLockColumns)
+        self.statusList.setColumnHidden(self.__lockinfoColumn,
+                                        hideLockColumns)
+        self.statusList.setColumnHidden(self.__upToDateColumn,
+                                        hideUpToDateColumn)
+        self.statusList.setColumnHidden(self.__historyColumn,
+                                        hideHistoryColumn)
+        self.statusList.setColumnHidden(self.__switchedColumn,
+                                        hideSwitchedColumn)
+        
         locker.unlock()
         self.__finish()
         os.chdir(cwd)
         
     def __finish(self):
         """
-        Private slot called when the process finished or the user pressed the button.
+        Private slot called when the process finished or the user pressed
+        the button.
         """
         QApplication.restoreOverrideCursor()
         
@@ -369,9 +422,9 @@
         self.errors.insertPlainText(msg)
         self.errors.ensureCursorVisible()
     
-    ############################################################################
+    ###########################################################################
     ## Context menu handling methods
-    ############################################################################
+    ###########################################################################
     
     def __showContextMenu(self, coord):
         """
@@ -390,7 +443,8 @@
         if not names:
             E5MessageBox.information(self,
                 self.trUtf8("Commit"),
-                self.trUtf8("""There are no uncommitted changes available/selected."""))
+                self.trUtf8("""There are no uncommitted changes"""
+                            """ available/selected."""))
             return
         
         if Preferences.getVCS("AutoSaveFiles"):
@@ -416,7 +470,8 @@
         if not names:
             E5MessageBox.information(self,
                 self.trUtf8("Add"),
-                self.trUtf8("""There are no unversioned entries available/selected."""))
+                self.trUtf8("""There are no unversioned entries"""
+                            """ available/selected."""))
             return
         
         self.vcs.vcsAdd(names)
@@ -436,7 +491,8 @@
         if not names:
             E5MessageBox.information(self,
                 self.trUtf8("Revert"),
-                self.trUtf8("""There are no uncommitted changes available/selected."""))
+                self.trUtf8("""There are no uncommitted changes"""
+                            """ available/selected."""))
             return
         
         self.vcs.vcsRevert(names)
@@ -456,7 +512,8 @@
         if not names:
             E5MessageBox.information(self,
                 self.trUtf8("Lock"),
-                self.trUtf8("""There are no unlocked files available/selected."""))
+                self.trUtf8("""There are no unlocked files"""
+                            """ available/selected."""))
             return
         
         self.vcs.svnLock(names, parent = self)
@@ -471,7 +528,8 @@
         if not names:
             E5MessageBox.information(self,
                 self.trUtf8("Unlock"),
-                self.trUtf8("""There are no locked files available/selected."""))
+                self.trUtf8("""There are no locked files"""
+                            """ available/selected."""))
             return
         
         self.vcs.svnUnlock(names, parent = self)
@@ -481,12 +539,14 @@
         """
         Private slot to handle the Break Lock context menu entry.
         """
-        names = [os.path.join(self.dname, itm.text(self.__pathColumn)) \
-                 for itm in self.__getLockActionItems(self.stealBreakLockIndicators)]
+        names = [os.path.join(self.dname, itm.text(self.__pathColumn))
+                 for itm in self.__getLockActionItems(
+                    self.stealBreakLockIndicators)]
         if not names:
             E5MessageBox.information(self,
                 self.trUtf8("Break Lock"),
-                self.trUtf8("""There are no locked files available/selected."""))
+                self.trUtf8("""There are no locked files"""
+                            """ available/selected."""))
             return
         
         self.vcs.svnUnlock(names, parent = self, breakIt = True)
@@ -496,12 +556,14 @@
         """
         Private slot to handle the Break Lock context menu entry.
         """
-        names = [os.path.join(self.dname, itm.text(self.__pathColumn)) \
-                 for itm in self.__getLockActionItems(self.stealBreakLockIndicators)]
+        names = [os.path.join(self.dname, itm.text(self.__pathColumn))
+                 for itm in self.__getLockActionItems(
+                    self.stealBreakLockIndicators)]
         if not names:
             E5MessageBox.information(self,
                 self.trUtf8("Steal Lock"),
-                self.trUtf8("""There are no locked files available/selected."""))
+                self.trUtf8("""There are no locked files"""
+                            """ available/selected."""))
             return
         
         self.vcs.svnLock(names, parent=self, stealIt=True)
@@ -535,7 +597,8 @@
             E5MessageBox.information(self,
                 self.trUtf8("Remove from Changelist"),
                 self.trUtf8(
-                    """There are no files available/selected belonging to a changelist."""
+                    """There are no files available/selected belonging"""
+                    """ to a changelist."""
                 )
             )
             return
@@ -557,7 +620,8 @@
         
     def __getUnversionedItems(self):
         """
-        Private method to retrieve all entries, that have an unversioned status.
+        Private method to retrieve all entries, that have an
+        unversioned status.
         
         @return list of all items with an unversioned status
         """
@@ -581,7 +645,8 @@
         
     def __getChangelistItems(self):
         """
-        Private method to retrieve all entries, that are members of a changelist.
+        Private method to retrieve all entries, that are members of
+        a changelist.
         
         @return list of all items belonging to a changelist
         """
@@ -593,7 +658,8 @@
         
     def __getNonChangelistItems(self):
         """
-        Private method to retrieve all entries, that are not members of a changelist.
+        Private method to retrieve all entries, that are not members of
+        a changelist.
         
         @return list of all items not belonging to a changelist
         """
@@ -601,4 +667,4 @@
         for itm in self.statusList.selectedItems():
             if not itm.text(self.__changelistColumn):
                 clitems.append(itm)
-        return clitems
\ No newline at end of file
+        return clitems
--- a/Plugins/VcsPlugins/vcsSubversion/SvnStatusDialog.py	Wed Feb 09 19:02:52 2011 +0100
+++ b/Plugins/VcsPlugins/vcsSubversion/SvnStatusDialog.py	Sat Feb 12 19:22:28 2011 +0100
@@ -4,7 +4,8 @@
 #
 
 """
-Module implementing a dialog to show the output of the svn status command process.
+Module implementing a dialog to show the output of the svn status command
+process.
 """
 
 import os
@@ -21,7 +22,8 @@
 
 class SvnStatusDialog(QWidget, Ui_SvnStatusDialog):
     """
-    Class implementing a dialog to show the output of the svn status command process.
+    Class implementing a dialog to show the output of the svn status command
+    process.
     """
     def __init__(self, vcs, parent = None):
         """
@@ -36,13 +38,19 @@
         self.__changelistColumn = 0
         self.__statusColumn = 1
         self.__propStatusColumn = 2
+        self.__lockedColumn = 3
+        self.__historyColumn = 4
+        self.__switchedColumn = 5
         self.__lockinfoColumn = 6
+        self.__upToDateColumn = 7
         self.__pathColumn = 11
         self.__lastColumn = self.statusList.columnCount()
         
         self.refreshButton = \
-            self.buttonBox.addButton(self.trUtf8("Refresh"), QDialogButtonBox.ActionRole)
-        self.refreshButton.setToolTip(self.trUtf8("Press to refresh the status display"))
+            self.buttonBox.addButton(self.trUtf8("Refresh"),
+                                     QDialogButtonBox.ActionRole)
+        self.refreshButton.setToolTip(
+            self.trUtf8("Press to refresh the status display"))
         self.refreshButton.setEnabled(False)
         self.buttonBox.button(QDialogButtonBox.Close).setEnabled(False)
         self.buttonBox.button(QDialogButtonBox.Cancel).setDefault(True)
@@ -52,7 +60,8 @@
         self.vcs.committed.connect(self.__committed)
         
         self.statusList.headerItem().setText(self.__lastColumn, "")
-        self.statusList.header().setSortIndicator(self.__pathColumn, Qt.AscendingOrder)
+        self.statusList.header().setSortIndicator(self.__pathColumn, 
+                                                  Qt.AscendingOrder)
         if self.vcs.versionStr < '1.5.0':
             self.statusList.header().hideSection(self.__changelistColumn)
         
@@ -70,25 +79,30 @@
             self.menuactions.append(self.menu.addAction(
                 self.trUtf8("Add to Changelist"), self.__addToChangelist))
             self.menuactions.append(self.menu.addAction(
-                self.trUtf8("Remove from Changelist"), self.__removeFromChangelist))
+                self.trUtf8("Remove from Changelist"),
+                self.__removeFromChangelist))
         if self.vcs.versionStr >= '1.2.0':
             self.menu.addSeparator()
             self.menuactions.append(self.menu.addAction(self.trUtf8("Lock"),
                 self.__lock))
             self.menuactions.append(self.menu.addAction(self.trUtf8("Unlock"),
                 self.__unlock))
-            self.menuactions.append(self.menu.addAction(self.trUtf8("Break lock"),
+            self.menuactions.append(self.menu.addAction(
+                self.trUtf8("Break lock"),
                 self.__breakLock))
-            self.menuactions.append(self.menu.addAction(self.trUtf8("Steal lock"),
+            self.menuactions.append(self.menu.addAction(
+                self.trUtf8("Steal lock"),
                 self.__stealLock))
         self.menu.addSeparator()
-        self.menuactions.append(self.menu.addAction(self.trUtf8("Adjust column sizes"),
+        self.menuactions.append(self.menu.addAction(
+            self.trUtf8("Adjust column sizes"),
             self.__resizeColumns))
         for act in self.menuactions:
             act.setEnabled(False)
         
         self.statusList.setContextMenuPolicy(Qt.CustomContextMenu)
-        self.statusList.customContextMenuRequested.connect(self.__showContextMenu)
+        self.statusList.customContextMenuRequested.connect(
+            self.__showContextMenu)
         
         self.modifiedIndicators = [
             self.trUtf8('added'), 
@@ -164,7 +178,8 @@
             # flags (8 anything), path
         self.rx_changelist = \
             QRegExp('--- \\S+ .([\\w\\s]+).:\\s+')
-            # three dashes, Changelist (translated), quote, changelist name, quote, :
+            # three dashes, Changelist (translated), quote,
+            # changelist name, quote, :
         
         self.__nonverbose = True
         
@@ -182,8 +197,8 @@
         self.statusList.header().resizeSections(QHeaderView.ResizeToContents)
         self.statusList.header().setStretchLastSection(True)
         
-    def __generateItem(self, status, propStatus, locked, history, switched, lockinfo,
-                       uptodate, revision, change, author, path):
+    def __generateItem(self, status, propStatus, locked, history, switched,
+                       lockinfo, uptodate, revision, change, author, path):
         """
         Private method to generate a status item in the status list.
         
@@ -238,6 +253,14 @@
         itm.setTextAlignment(10, Qt.AlignLeft)
         itm.setTextAlignment(11, Qt.AlignLeft)
         
+        self.hidePropertyStatusColumn = self.hidePropertyStatusColumn and \
+            propStatus == " "
+        self.hideLockColumns = self.hideLockColumns and \
+            locked == " " and lockinfo == " "
+        self.hideUpToDateColumn = self.hideUpToDateColumn and uptodate == " "
+        self.hideHistoryColumn = self.hideHistoryColumn and history == " "
+        self.hideSwitchedColumn = self.hideSwitchedColumn and switched == " "
+        
     def closeEvent(self, e):
         """
         Private slot implementing a close event handler.
@@ -265,6 +288,12 @@
         self.currentChangelist = ""
         self.changelistFound = False
         
+        self.hidePropertyStatusColumn = True
+        self.hideLockColumns = True
+        self.hideUpToDateColumn = True
+        self.hideHistoryColumn = True
+        self.hideSwitchedColumn = True
+        
         if self.process:
             self.process.kill()
         else:
@@ -313,7 +342,8 @@
         
     def __finish(self):
         """
-        Private slot called when the process finished or the user pressed the button.
+        Private slot called when the process finished or the user pressed
+        the button.
         """
         if self.process is not None and \
            self.process.state() != QProcess.NotRunning:
@@ -336,7 +366,21 @@
         self.statusList.doItemsLayout()
         self.__resort()
         self.__resizeColumns()
-        self.statusList.setColumnHidden(self.__changelistColumn, not self.changelistFound)
+        
+        self.statusList.setColumnHidden(self.__changelistColumn, 
+                                        not self.changelistFound)
+        self.statusList.setColumnHidden(self.__propStatusColumn, 
+                                        self.hidePropertyStatusColumn)
+        self.statusList.setColumnHidden(self.__lockedColumn, 
+                                        self.hideLockColumns)
+        self.statusList.setColumnHidden(self.__lockinfoColumn, 
+                                        self.hideLockColumns)
+        self.statusList.setColumnHidden(self.__upToDateColumn, 
+                                        self.hideUpToDateColumn)
+        self.statusList.setColumnHidden(self.__historyColumn, 
+                                        self.hideHistoryColumn)
+        self.statusList.setColumnHidden(self.__switchedColumn, 
+                                        self.hideSwitchedColumn)
         
     def on_buttonBox_clicked(self, button):
         """
@@ -381,14 +425,16 @@
                     author = self.rx_status.cap(4)
                     path = self.rx_status.cap(5).strip()
                     
-                    self.__generateItem(flags[0], flags[1], flags[2], flags[3], flags[4], 
-                                        flags[5], flags[7], rev, change, author, path)
+                    self.__generateItem(flags[0], flags[1], flags[2], flags[3],
+                                        flags[4], flags[5], flags[7], rev,
+                                        change, author, path)
                 elif self.rx_status2.exactMatch(s):
                     flags = self.rx_status2.cap(1)
                     path = self.rx_status2.cap(2).trimmed()
                     
-                    self.__generateItem(flags[0], flags[1], flags[2], flags[3], flags[4], 
-                                        flags[5], flags[7], "", "", "", path)
+                    self.__generateItem(flags[0], flags[1], flags[2], flags[3],
+                                        flags[4], flags[5], flags[7], "", "",
+                                        "", path)
                 elif self.rx_changelist.exactMatch(s):
                     self.currentChangelist = self.rx_changelist.cap(1)
                     self.changelistFound = True
@@ -477,9 +523,9 @@
         
         self.start(self.args)
     
-    ############################################################################
+    ###########################################################################
     ## Context menu handling methods
-    ############################################################################
+    ###########################################################################
     
     def __showContextMenu(self, coord):
         """
@@ -493,12 +539,13 @@
         """
         Private slot to handle the Commit context menu entry.
         """
-        names = [os.path.join(self.dname, itm.text(self.__pathColumn)) \
+        names = [os.path.join(self.dname, itm.text(self.__pathColumn))
                  for itm in self.__getModifiedItems()]
         if not names:
             E5MessageBox.information(self,
                 self.trUtf8("Commit"),
-                self.trUtf8("""There are no uncommitted changes available/selected."""))
+                self.trUtf8("""There are no uncommitted changes"""
+                            """ available/selected."""))
             return
         
         if Preferences.getVCS("AutoSaveFiles"):
@@ -519,12 +566,13 @@
         """
         Private slot to handle the Add context menu entry.
         """
-        names = [os.path.join(self.dname, itm.text(self.__pathColumn)) \
+        names = [os.path.join(self.dname, itm.text(self.__pathColumn))
                  for itm in self.__getUnversionedItems()]
         if not names:
             E5MessageBox.information(self,
                 self.trUtf8("Add"),
-                self.trUtf8("""There are no unversioned entries available/selected."""))
+                self.trUtf8("""There are no unversioned entries"""
+                            """ available/selected."""))
             return
         
         self.vcs.vcsAdd(names)
@@ -539,12 +587,13 @@
         """
         Private slot to handle the Revert context menu entry.
         """
-        names = [os.path.join(self.dname, itm.text(self.__pathColumn)) \
+        names = [os.path.join(self.dname, itm.text(self.__pathColumn))
                  for itm in self.__getModifiedItems()]
         if not names:
             E5MessageBox.information(self,
                 self.trUtf8("Revert"),
-                self.trUtf8("""There are no uncommitted changes available/selected."""))
+                self.trUtf8("""There are no uncommitted changes"""
+                            """ available/selected."""))
             return
         
         self.vcs.vcsRevert(names)
@@ -559,12 +608,13 @@
         """
         Private slot to handle the Lock context menu entry.
         """
-        names = [os.path.join(self.dname, itm.text(self.__pathColumn)) \
+        names = [os.path.join(self.dname, itm.text(self.__pathColumn))
                  for itm in self.__getLockActionItems(self.unlockedIndicators)]
         if not names:
             E5MessageBox.information(self,
                 self.trUtf8("Lock"),
-                self.trUtf8("""There are no unlocked files available/selected."""))
+                self.trUtf8("""There are no unlocked files"""
+                            """ available/selected."""))
             return
         
         self.vcs.svnLock(names, parent = self)
@@ -574,12 +624,13 @@
         """
         Private slot to handle the Unlock context menu entry.
         """
-        names = [os.path.join(self.dname, itm.text(self.__pathColumn)) \
+        names = [os.path.join(self.dname, itm.text(self.__pathColumn))
                  for itm in self.__getLockActionItems(self.lockedIndicators)]
         if not names:
             E5MessageBox.information(self,
                 self.trUtf8("Unlock"),
-                self.trUtf8("""There are no locked files available/selected."""))
+                self.trUtf8("""There are no locked files"""
+                            """ available/selected."""))
             return
         
         self.vcs.svnUnlock(names, parent = self)
@@ -589,12 +640,14 @@
         """
         Private slot to handle the Break Lock context menu entry.
         """
-        names = [os.path.join(self.dname, itm.text(self.__pathColumn)) \
-                 for itm in self.__getLockActionItems(self.stealBreakLockIndicators)]
+        names = [os.path.join(self.dname, itm.text(self.__pathColumn))
+                 for itm in self.__getLockActionItems(
+                    self.stealBreakLockIndicators)]
         if not names:
             E5MessageBox.information(self,
                 self.trUtf8("Break Lock"),
-                self.trUtf8("""There are no locked files available/selected."""))
+                self.trUtf8("""There are no locked files"""
+                            """ available/selected."""))
             return
         
         self.vcs.svnUnlock(names, parent = self, breakIt = True)
@@ -604,12 +657,14 @@
         """
         Private slot to handle the Break Lock context menu entry.
         """
-        names = [os.path.join(self.dname, itm.text(self.__pathColumn)) \
-                 for itm in self.__getLockActionItems(self.stealBreakLockIndicators)]
+        names = [os.path.join(self.dname, itm.text(self.__pathColumn))
+                 for itm in self.__getLockActionItems(
+                    self.stealBreakLockIndicators)]
         if not names:
             E5MessageBox.information(self,
                 self.trUtf8("Steal Lock"),
-                self.trUtf8("""There are no locked files available/selected."""))
+                self.trUtf8("""There are no locked files"""
+                            """ available/selected."""))
             return
         
         self.vcs.svnLock(names, parent=self, stealIt=True)
@@ -619,7 +674,7 @@
         """
         Private slot to add entries to a changelist.
         """
-        names = [os.path.join(self.dname, itm.text(self.__pathColumn)) \
+        names = [os.path.join(self.dname, itm.text(self.__pathColumn))
                  for itm in self.__getNonChangelistItems()]
         if not names:
             E5MessageBox.information(self,
@@ -637,13 +692,14 @@
         """
         Private slot to remove entries from their changelists.
         """
-        names = [os.path.join(self.dname, itm.text(self.__pathColumn)) \
+        names = [os.path.join(self.dname, itm.text(self.__pathColumn))
                  for itm in self.__getChangelistItems()]
         if not names:
             E5MessageBox.information(self,
                 self.trUtf8("Remove from Changelist"),
                 self.trUtf8(
-                    """There are no files available/selected belonging to a changelist."""
+                    """There are no files available/selected belonging"""
+                    """ to a changelist."""
                 )
             )
             return
@@ -665,7 +721,8 @@
         
     def __getUnversionedItems(self):
         """
-        Private method to retrieve all entries, that have an unversioned status.
+        Private method to retrieve all entries, that have an unversioned
+        status.
         
         @return list of all items with an unversioned status
         """
@@ -689,7 +746,8 @@
         
     def __getChangelistItems(self):
         """
-        Private method to retrieve all entries, that are members of a changelist.
+        Private method to retrieve all entries, that are members of
+        a changelist.
         
         @return list of all items belonging to a changelist
         """
@@ -701,7 +759,8 @@
         
     def __getNonChangelistItems(self):
         """
-        Private method to retrieve all entries, that are not members of a changelist.
+        Private method to retrieve all entries, that are not members of
+        a changelist.
         
         @return list of all items not belonging to a changelist
         """
@@ -709,4 +768,4 @@
         for itm in self.statusList.selectedItems():
             if itm.text(self.__changelistColumn) == "":
                 clitems.append(itm)
-        return clitems
\ No newline at end of file
+        return clitems

eric ide

mercurial