MercurialControllingHookBase.

TerminateHookAndCancelCommand(int, string) Method

Summary

Terminates the hook and cancels the Mercurial command being executed.

Syntax

public void TerminateHookAndCancelCommand(int exitCode, string message)

Parameters

Name Type Description
exitCode int The exit code to pass back to Mercurial, must be or higher to signal failure. Default is 1.
message string A message to output to the Mercurial console log; or an empty string if no such message is needed.

Return Value

Type Description
void