[PATCH 3 of 4] chgserver: override runcommand

Jun Wu quark at fb.com
Fri Dec 16 10:01:20 EST 2016


# HG changeset patch
# User Jun Wu <quark at fb.com>
# Date 1481899717 0
#      Fri Dec 16 14:48:37 2016 +0000
# Node ID eb3017f14d56dfdc9870b06a684ef9bcf7a030e6
# Parent  4033499405eb31a5b60bfc2001f109e341c9339d
# Available At https://bitbucket.org/quark-zju/hg-draft
#              hg pull https://bitbucket.org/quark-zju/hg-draft -r eb3017f14d56
chgserver: override runcommand

Next patches will customize chgserver's runcommand. So let's override it.
The docstring is temporarily missing and will be filled later.

diff --git a/mercurial/chgserver.py b/mercurial/chgserver.py
--- a/mercurial/chgserver.py
+++ b/mercurial/chgserver.py
@@ -506,4 +506,7 @@ class chgcmdserver(commandserver.server)
             self.cresult.write('\0')
 
+    def runcommand(self):
+        return super(chgcmdserver, self).runcommand()
+
     def setenv(self):
         """Clear and update os.environ
@@ -524,4 +527,5 @@ class chgcmdserver(commandserver.server)
                          'chdir': chdir,
                          'getpager': getpager,
+                         'runcommand': runcommand,
                          'setenv': setenv,
                          'setumask': setumask})


More information about the Mercurial-devel mailing list