Mercurial hooks