Plugins/VcsPlugins/vcsPySvn/SvnDialog.py

changeset 3009
bf5ae5d7477d
parent 2962
d6c9d1ca2da4
child 3037
a417a0670a36
child 3057
10516539f238
--- a/Plugins/VcsPlugins/vcsPySvn/SvnDialog.py	Sat Oct 12 15:01:28 2013 +0200
+++ b/Plugins/VcsPlugins/vcsPySvn/SvnDialog.py	Sat Oct 12 17:31:40 2013 +0200
@@ -73,7 +73,8 @@
         """
         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:
@@ -85,10 +86,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)
@@ -116,7 +119,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