add preoutgoing and outgoing hooks.
preoutgoing lets prevent pull over http or ssh.
outgoing lets notify after pull.
#!/bin/shhg initecho "Is there an error message when trying to diff non-existing files?"hg diff not foundecho "Is there an error message when trying to add non-existing files?"hg add not found