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

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

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Thu, 17 Apr 2014 18:22:56 +0200
branch
5_4_x
changeset 3517
e8a685fd7351
parent 3514
f694be6063ef
child 3519
d4b642e067e3

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

Plugins/VcsPlugins/vcsMercurial/HgLogBrowserDialog.py file | annotate | diff | comparison | revisions
Plugins/VcsPlugins/vcsMercurial/HgLogDialog.py file | annotate | diff | comparison | revisions
--- 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
@@ -18,6 +18,8 @@
 from E5Gui.E5Application import e5App
 from E5Gui import E5MessageBox
 
+from Globals import isWindowsPlatform
+
 from .Ui_HgLogBrowserDialog import Ui_HgLogBrowserDialog
 
 import Preferences
@@ -85,7 +87,10 @@
         else:
             self.commandMode = "log"
         self.bundle = bundle
-        self.__hgClient = vcs.getClient()
+        if isWindowsPlatform():
+            self.__hgClient = None
+        else:
+            self.__hgClient = vcs.getClient()
         
         self.__initData()
         
--- 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
@@ -53,7 +55,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.trUtf8('<b>Processing your request, please wait...</b>'))

eric ide

mercurial