chgserver: override runcommand
authorJun Wu <quark@fb.com>
Fri, 16 Dec 2016 14:48:37 +0000
changeset 30644 2bb8c53be961
parent 30643 dfb19aed409e
child 30645 a3f335d1247c
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.
mercurial/chgserver.py
--- a/mercurial/chgserver.py	Fri Dec 16 14:46:34 2016 +0000
+++ b/mercurial/chgserver.py	Fri Dec 16 14:48:37 2016 +0000
@@ -504,6 +504,9 @@
         else:
             self.cresult.write('\0')
 
+    def runcommand(self):
+        return super(chgcmdserver, self).runcommand()
+
     def setenv(self):
         """Clear and update os.environ
 
@@ -522,6 +525,7 @@
     capabilities.update({'attachio': attachio,
                          'chdir': chdir,
                          'getpager': getpager,
+                         'runcommand': runcommand,
                          'setenv': setenv,
                          'setumask': setumask})