[darcs-devel] Control flow in apply_cmd

Eric Y. Kow eric.kow at gmail.com
Sat Jul 29 23:25:16 PDT 2006


On Sat, Jul 29, 2006 at 21:45:20 -0700, Nathaniel Gray wrote:
> However, looking at apply_cmd leaves me at a loss as to how *any*
> posthook gets run after it executes.  The function ends with "exitWith
> ExitSuccess", which AFAIK means game over.  Can somebody enlighten me as
> to how the posthook gets invoked?

Have a look at DarcsCommand (grep runWithPostHook).
We catch the ExitException and then run the posthook.

-- 
Eric Kow                     http://www.loria.fr/~kow
PGP Key ID: 08AC04F9         Merci de corriger mon français.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://lists.osuosl.org/pipermail/darcs-devel/attachments/20060730/95844469/attachment.pgp


More information about the darcs-devel mailing list