Plugins/VcsPlugins/vcsMercurial/HgDialog.py

changeset 3310
a2032ed66aec
parent 3302
e92f0dd51979
child 3484
645c12de6b0c
--- a/Plugins/VcsPlugins/vcsMercurial/HgDialog.py	Thu Feb 27 18:59:52 2014 +0100
+++ b/Plugins/VcsPlugins/vcsMercurial/HgDialog.py	Thu Feb 27 19:48:55 2014 +0100
@@ -27,12 +27,14 @@
     shows the output of the process. The dialog is modal,
     which causes a synchronized execution of the process.
     """
-    def __init__(self, text, hg=None, parent=None):
+    def __init__(self, text, hg=None, useClient=True, parent=None):
         """
         Constructor
         
         @param text text to be shown by the label (string)
         @param hg reference to the Mercurial interface object (Hg)
+        @param useClient flag indicating to use the command server client
+            if possible (boolean)
         @param parent parent widget (QWidget)
         """
         super().__init__(parent)
@@ -44,7 +46,10 @@
         self.proc = None
         self.username = ''
         self.password = ''
-        self.__hgClient = hg.getClient()
+        if useClient:
+            self.__hgClient = hg.getClient()
+        else:
+            self.__hgClient = None
         self.vcs = hg
         
         self.outputGroup.setTitle(text)

eric ide

mercurial