mercurial/exthelper.py
changeset 50795 d9e22b39041a
parent 48946 642e31cb55f0
child 51859 f4733654f144
equal deleted inserted replaced
50794:4c6151b69085 50795:d9e22b39041a
   323         example::
   323         example::
   324 
   324 
   325             # Required, otherwise the function will not be wrapped
   325             # Required, otherwise the function will not be wrapped
   326             uisetup = eh.finaluisetup
   326             uisetup = eh.finaluisetup
   327 
   327 
   328             @eh.wrapfunction(discovery, b'checkheads')
   328             @eh.wrapfunction(discovery, 'checkheads')
   329             def wrapcheckheads(orig, *args, **kwargs):
   329             def wrapcheckheads(orig, *args, **kwargs):
   330                 ui.note(b'His head smashed in and his heart cut out')
   330                 ui.note(b'His head smashed in and his heart cut out')
   331                 return orig(*args, **kwargs)
   331                 return orig(*args, **kwargs)
   332         """
   332         """
   333 
   333