diff mercurial/wireproto.py @ 36107:957e773614d0

wireprotoserver: rename _client to client (API) This method is called in wireproto.py. It should be part of the public API/interface. .. api:: The ``_client()`` method of the wire protocol handler interface has been renamed to ``client()``. Differential Revision: https://phab.mercurial-scm.org/D2084
author Gregory Szorc <gregory.szorc@gmail.com>
date Wed, 07 Feb 2018 20:24:22 -0800
parents caca3ac2ac04
children 90ca4986616c
line wrap: on
line diff
--- a/mercurial/wireproto.py	Wed Feb 07 20:20:11 2018 -0800
+++ b/mercurial/wireproto.py	Wed Feb 07 20:24:22 2018 -0800
@@ -1023,7 +1023,7 @@
                                       hint=bundle2requiredhint)
 
                 r = exchange.unbundle(repo, gen, their_heads, 'serve',
-                                      proto._client())
+                                      proto.client())
                 if util.safehasattr(r, 'addpart'):
                     # The return looks streamable, we are in the bundle2 case
                     # and should return a stream.