Plugins/VcsPlugins/vcsMercurial/HgDialog.py

changeset 3008
7848489bcb92
parent 2771
281c9b30dd91
child 3020
542e97d4ecb3
child 3057
10516539f238
--- a/Plugins/VcsPlugins/vcsMercurial/HgDialog.py	Fri Oct 11 19:51:20 2013 +0200
+++ b/Plugins/VcsPlugins/vcsMercurial/HgDialog.py	Sat Oct 12 15:01:28 2013 +0200
@@ -53,7 +53,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.proc is not None and \
            self.proc.state() != QProcess.NotRunning:
@@ -69,7 +70,8 @@
         self.buttonBox.button(QDialogButtonBox.Close).setEnabled(True)
         self.buttonBox.button(QDialogButtonBox.Cancel).setEnabled(False)
         self.buttonBox.button(QDialogButtonBox.Close).setDefault(True)
-        self.buttonBox.button(QDialogButtonBox.Close).setFocus(Qt.OtherFocusReason)
+        self.buttonBox.button(QDialogButtonBox.Close).setFocus(
+            Qt.OtherFocusReason)
         
         if Preferences.getVCS("AutoClose") and \
            self.normal and \
@@ -114,8 +116,9 @@
         self.intercept = False
         
         self.__hasAddOrDelete = False
-        if args[0] in ["fetch", "qpush", "qpop", "qgoto", "rebase", "transplant",
-                       "update", "import", "revert", "graft"] or \
+        if args[0] in ["fetch", "qpush", "qpop", "qgoto", "rebase",
+                       "transplant", "update", "import", "revert",
+                       "graft"] or \
            (args[0] in ["pull", "unbundle"] and \
             ("--update" in args[1:] or "--rebase" in args[1:])):
             self.__updateCommand = True

eric ide

mercurial