The hgrc manual page says that,
post-<command>
Run after successful invocations of the associated command. The contents of the
command line are passed as $HG_ARGS and the result code in $HG_RESULT. Hook
failure is ignored.
pre-<command>
Run before executing the associated command. The contents of the command line
are passed as $HG_ARGS. If the hook returns failure, the command doesn't execute
and Mercurial returns the failure code.
Therefore at least pre-clone and post-clone events should be emitted.
By the way, for remote clone (at least for ssh) outgoing events are generated.
In my opinion, there should not be difference in such case.
|