Implemented a workaround for a Mercurial command server issue on Windows platforms causing a crash/unexpected behavior for long outputs (> 4092 characters).

Thu, 17 Apr 2014 18:22:56 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Thu, 17 Apr 2014 18:22:56 +0200
changeset 3516
4992e89def32
parent 3510
31d7e522ecb2
child 3518
1d681235c1b4

Implemented a workaround for a Mercurial command server issue on Windows platforms causing a crash/unexpected behavior for long outputs (> 4092 characters).

Plugins/VcsPlugins/vcsMercurial/HgLogBrowserDialog.py file | annotate | diff | comparison | revisions
Plugins/VcsPlugins/vcsMercurial/HgLogDialog.py file | annotate | diff | comparison | revisions
diff -r 31d7e522ecb2 -r 4992e89def32 Plugins/VcsPlugins/vcsMercurial/HgLogBrowserDialog.py
--- a/Plugins/VcsPlugins/vcsMercurial/HgLogBrowserDialog.py	Sun Apr 13 17:56:31 2014 +0200
+++ b/Plugins/VcsPlugins/vcsMercurial/HgLogBrowserDialog.py	Thu Apr 17 18:22:56 2014 +0200
@@ -19,6 +19,8 @@
 from E5Gui.E5Application import e5App
 from E5Gui import E5MessageBox
 
+from Globals import isWindowsPlatform
+
 from .Ui_HgLogBrowserDialog import Ui_HgLogBrowserDialog
 
 import UI.PixmapCache
@@ -85,7 +87,10 @@
         else:
             self.commandMode = "log"
             self.initialCommandMode = "log"
-        self.__hgClient = vcs.getClient()
+        if isWindowsPlatform():
+            self.__hgClient = None
+        else:
+            self.__hgClient = vcs.getClient()
         
         self.__bundle = ""
         self.__filename = ""
diff -r 31d7e522ecb2 -r 4992e89def32 Plugins/VcsPlugins/vcsMercurial/HgLogDialog.py
--- a/Plugins/VcsPlugins/vcsMercurial/HgLogDialog.py	Sun Apr 13 17:56:31 2014 +0200
+++ b/Plugins/VcsPlugins/vcsMercurial/HgLogDialog.py	Thu Apr 17 18:22:56 2014 +0200
@@ -16,6 +16,8 @@
 from E5Gui.E5Application import e5App
 from E5Gui import E5MessageBox
 
+from Globals import isWindowsPlatform
+
 from .Ui_HgLogDialog import Ui_HgLogDialog
 
 import Utilities
@@ -52,7 +54,10 @@
         else:
             self.mode = "log"
         self.bundle = bundle
-        self.__hgClient = self.vcs.getClient()
+        if isWindowsPlatform():
+            self.__hgClient = None
+        else:
+            self.__hgClient = self.vcs.getClient()
         
         self.contents.setHtml(
             self.tr('<b>Processing your request, please wait...</b>'))

eric ide

mercurial