setup: display return code information about failed `hg` call
This help to understand what is going wrong when things goes wrong.
frommercurial.i18nimport_frommercurialimportchangegroup,error,extensionsdefabort(orig,*args,**kwargs):raiseerror.Abort(_('this is an exercise'))defuisetup(ui):extensions.wrapfunction(changegroup,'getbundler',abort)