# HG changeset patch # User Jun Wu <qu...@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}) _______________________________________________ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel