# HG changeset patch # User Dirkjan Ochtman # Date 2008-11-14 13:17:42 # Node ID d9e9dd2b00fbaf9469d847948232f50b70423511 # Parent e17dbf14003512f0429818977ec4e508fdeaf95e extensions: copy __module__ for wrapped commands diff --git a/mercurial/extensions.py b/mercurial/extensions.py --- a/mercurial/extensions.py +++ b/mercurial/extensions.py @@ -99,6 +99,7 @@ def wrapcommand(table, command, wrapper) return wrapper(origfn, *args, **kwargs) wrap.__doc__ = getattr(origfn, '__doc__') + wrap.__module__ = getattr(origfn, '__module__') newentry = list(entry) newentry[0] = wrap