wireprotov1peer: forward __name__ of wrapped method in batchable decorator
Not required, but clarifies debugging when the going gets really tough.
Differential Revision: https://phab.mercurial-scm.org/D4551
--- a/mercurial/wireprotov1peer.py Sun Jul 29 21:28:51 2018 +0900
+++ b/mercurial/wireprotov1peer.py Wed Sep 12 19:14:28 2018 -0400
@@ -64,6 +64,7 @@
encresref.set(self._submitone(cmd, encargsorres))
return next(batchable)
setattr(plain, 'batchable', f)
+ setattr(plain, '__name__', f.__name__)
return plain
class future(object):