Mercurial > hg
comparison mercurial/mdiff.py @ 29129:e6dfb0e4eeef
dispatch: add fail-* family of hooks
The post-* family of hooks will not run in case a command fails (i.e.
raises an exception). This makes it inconvenient to hook into events
such as doing something in case of a failed push.
We catch all exceptions to run the failure hook. I am not sure if this
is too aggressive, but tests apparently pass.
author | Jordi Gutiérrez Hermoso <jordigh@octave.org> |
---|---|
date | Thu, 28 Apr 2016 10:37:47 -0400 |
parents | 7a678a12a5cf |
children | 30789efb1e5e |
comparison
equal
deleted
inserted
replaced
29128:e521cb13d354 | 29129:e6dfb0e4eeef |
---|