changeset 39588:f15a587d2dfc

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
author Augie Fackler <raf@durin42.com>
date Wed, 12 Sep 2018 19:14:28 -0400
parents 918944f53aac
children 4eb0f2452ad7
files mercurial/wireprotov1peer.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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):