##// END OF EJS Templates
extensions: add getwrapperchain to get a list of wrappers...
extensions: add getwrapperchain to get a list of wrappers The getwrapperchain returns a list of wrappers + the original function, making it easier to understand what has been wrapped by whom. For example: In : mercurial.extensions.getwrapperchain(mercurial.dispatch, '_runcommand') Out: [<function hgext.pager.pagecmd>, <function hgext.color.colorcmd>, <function hgext.zeroconf.cleanupafterdispatch>, <function mercurial.dispatch._runcommand>] It will also be useful to safely unwrap a function. See the next patch.

File last commit:

r16438:28a90cdf default
r29764:8bf97c4c default
Show More
__init__.py
0 lines | 0 B | text/x-python | PythonLexer