[PATCH RFC] dispatch: print 'abort:' when a pre-command hook fails

Siddharth Agarwal sid0 at fb.com
Tue Apr 16 16:45:08 CDT 2013


On 04/16/2013 02:44 PM, Siddharth Agarwal wrote:
> # HG changeset patch
> # User Siddharth Agarwal <sid0 at fb.com>
> # Date 1366148377 25200
> #      Tue Apr 16 14:39:37 2013 -0700
> # Node ID 58f26562aa8cc468c651d65b55c16e2c0f9946df
> # Parent  1e9704ba956a08cb298be3afb9a90fcf9d54c142
> dispatch: print 'abort:' when a pre-command hook fails
>
> This also changes the exit code from whatever the hook returned to 255. This
> brings it in line with all the other hooks that abort.

RFC because I'm wondering whether this count as breaking BC.


More information about the Mercurial-devel mailing list