Patchwork D1985: wireprotoserver: remove support for do_<command> handlers (API)

login
register
mail settings
Submitter phabricator
Date Feb. 1, 2018, 11:32 p.m.
Message ID <7c1cb6c6a8183eca796f3ad62a53aca2@localhost.localdomain>
Download mbox | patch
Permalink /patch/27191/
State Not Applicable
Headers show

Comments

phabricator - Feb. 1, 2018, 11:32 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGf87323084271: wireprotoserver: remove support for do_&lt;command&gt; handlers (API) (authored by indygreg, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D1985?vs=5108&id=5123

REVISION DETAIL
  https://phab.mercurial-scm.org/D1985

AFFECTED FILES
  mercurial/wireprotoserver.py

CHANGE DETAILS




To: indygreg, #hg-reviewers, durin42
Cc: durin42, mercurial-devel

Patch

diff --git a/mercurial/wireprotoserver.py b/mercurial/wireprotoserver.py
--- a/mercurial/wireprotoserver.py
+++ b/mercurial/wireprotoserver.py
@@ -344,13 +344,7 @@ 
             rsp = wireproto.dispatch(self.repo, self, cmd)
             self.handlers[rsp.__class__](self, rsp)
         elif cmd:
-            impl = getattr(self, 'do_' + cmd, None)
-            if impl:
-                r = impl()
-                if r is not None:
-                    self.sendresponse(r)
-            else:
-                self.sendresponse("")
+            self.sendresponse("")
         return cmd != ''
 
     def _client(self):