mercurial/hook.py
changeset 8206 cce63ef1045b
parent 7916 f779e1996e23
child 8209 a1a5a57efe90
equal deleted inserted replaced
8205:00736cd2702a 8206:cce63ef1045b
    59         else:
    59         else:
    60             ui.warn(_('error: %s hook raised an exception: '
    60             ui.warn(_('error: %s hook raised an exception: '
    61                            '%s\n') % (hname, exc))
    61                            '%s\n') % (hname, exc))
    62         if throw:
    62         if throw:
    63             raise
    63             raise
    64         ui.print_exc()
    64         ui.traceback()
    65         return True
    65         return True
    66     if r:
    66     if r:
    67         if throw:
    67         if throw:
    68             raise util.Abort(_('%s hook failed') % hname)
    68             raise util.Abort(_('%s hook failed') % hname)
    69         ui.warn(_('warning: %s hook failed\n') % hname)
    69         ui.warn(_('warning: %s hook failed\n') % hname)