Plugins/VcsPlugins/vcsMercurial/HgServeDialog.py

changeset 3302
e92f0dd51979
parent 3190
a9a94491c4fd
child 3345
071afe8be2a1
--- a/Plugins/VcsPlugins/vcsMercurial/HgServeDialog.py	Sun Feb 23 15:24:28 2014 +0100
+++ b/Plugins/VcsPlugins/vcsMercurial/HgServeDialog.py	Sun Feb 23 19:20:43 2014 +0100
@@ -114,8 +114,7 @@
         port = self.__portSpin.value()
         style = self.__styleCombo.currentText()
         
-        args = []
-        args.append("serve")
+        args = self.vcs.initCommand("serve")
         args.append("-v")
         args.append("--port")
         args.append(str(port))
@@ -193,8 +192,7 @@
         """
         if self.process is not None:
             s = str(self.process.readAllStandardOutput(),
-                    Preferences.getSystem("IOEncoding"),
-                    'replace')
+                    self.vcs.getEncoding(), 'replace')
             self.__appendText(s, False)
     
     def __readStderr(self):
@@ -205,8 +203,7 @@
         """
         if self.process is not None:
             s = str(self.process.readAllStandardError(),
-                    Preferences.getSystem("IOEncoding"),
-                    'replace')
+                    self.vcs.getEncoding(), 'replace')
             self.__appendText(s, True)
     
     def __appendText(self, txt, error=False):

eric ide

mercurial