Plugins/VcsPlugins/vcsPySvn/SvnDialog.py

branch
Py2 comp.
changeset 3057
10516539f238
parent 2525
8b507a9a2d40
parent 3009
bf5ae5d7477d
child 3060
5883ce99ee12
--- a/Plugins/VcsPlugins/vcsPySvn/SvnDialog.py	Tue Oct 15 22:03:54 2013 +0200
+++ b/Plugins/VcsPlugins/vcsPySvn/SvnDialog.py	Fri Oct 18 23:00:41 2013 +0200
@@ -69,13 +69,14 @@
         
     def _clientNotifyCallback(self, eventDict):
         """
-        Protected method called by the client to send events
+        Protected method called by the client to send events.
         
         @param eventDict dictionary containing the notification event
         """
         msg = ""
         if eventDict["action"] == pysvn.wc_notify_action.update_completed:
-            msg = self.trUtf8("Revision {0}.\n").format(eventDict["revision"].number)
+            msg = self.trUtf8("Revision {0}.\n").format(
+                eventDict["revision"].number)
         elif eventDict["path"] != "" and \
              eventDict["action"] in svnNotifyActionMap and \
              svnNotifyActionMap[eventDict["action"]] is not None:
@@ -87,10 +88,12 @@
                         mime)
             if '.e4p' in eventDict["path"]:
                 self.__hasAddOrDelete = True
-            if eventDict["action"] in \
-               [pysvn.wc_notify_action.add, pysvn.wc_notify_action.commit_added,
-                pysvn.wc_notify_action.commit_deleted, pysvn.wc_notify_action.delete,
-                pysvn.wc_notify_action.update_add, pysvn.wc_notify_action.update_delete]:
+            if eventDict["action"] in [pysvn.wc_notify_action.add,
+                                       pysvn.wc_notify_action.commit_added,
+                                       pysvn.wc_notify_action.commit_deleted,
+                                       pysvn.wc_notify_action.delete,
+                                       pysvn.wc_notify_action.update_add,
+                                       pysvn.wc_notify_action.update_delete]:
                 self.__hasAddOrDelete = True
         if msg:
             self.showMessage(msg)
@@ -118,7 +121,8 @@
         
     def finish(self):
         """
-        Public slot called when the process finished or the user pressed the button.
+        Public slot called when the process finished or the user pressed the
+        button.
         """
         self.buttonBox.button(QDialogButtonBox.Close).setEnabled(True)
         self.buttonBox.button(QDialogButtonBox.Cancel).setEnabled(False)

eric ide

mercurial