add preoutgoing and outgoing hooks.
preoutgoing lets prevent pull over http or ssh.
outgoing lets notify after pull.
tests for new hooks. fix things i found when writing tests.
add -p option to tip. for issue 64.
add prechangegroup and pretxnchangegroup hooks.
prechangegroup lets you stop push, pull or unbundle before it begins.
pretxnchangegroup lets you inspect changegroup before transaction is
committed, and roll back if you not like it.
add -w and -p options to diff. this is for issue 126.
prefix hook env var names with HG_.
old names are still provided, but doc says they deprecated.
Fix diff against an empty file (
issue124) and add a test for this.