D4551: wireprotov1peer: forward __name__ of wrapped method in batchable decorator
This revision was automatically updated to reflect the committed changes. Closed by commit rHGf15a587d2dfc: wireprotov1peer: forward __name__ of wrapped method in batchable decorator (authored by durin42, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D4551?vs=10979=10980 REVISION DETAIL https://phab.mercurial-scm.org/D4551 AFFECTED FILES mercurial/wireprotov1peer.py CHANGE DETAILS diff --git a/mercurial/wireprotov1peer.py b/mercurial/wireprotov1peer.py --- a/mercurial/wireprotov1peer.py +++ b/mercurial/wireprotov1peer.py @@ -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): To: durin42, #hg-reviewers Cc: mercurial-devel ___ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel
D4551: wireprotov1peer: forward __name__ of wrapped method in batchable decorator
durin42 created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REVISION SUMMARY Not required, but clarifies debugging when the going gets really tough. REPOSITORY rHG Mercurial REVISION DETAIL https://phab.mercurial-scm.org/D4551 AFFECTED FILES mercurial/wireprotov1peer.py CHANGE DETAILS diff --git a/mercurial/wireprotov1peer.py b/mercurial/wireprotov1peer.py --- a/mercurial/wireprotov1peer.py +++ b/mercurial/wireprotov1peer.py @@ -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): To: durin42, #hg-reviewers Cc: mercurial-devel ___ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel