# HG changeset patch # User mpm@selenic.com # Date 1122484048 28800 # Node ID 5cb8a3a023b2dafef0f496d9ff23e0910c04888a # Parent b3c7cb74d32589ae885e7554cf56404df6edc1d7 Add changegroup hook for push/pull diff --git a/mercurial/hg.py b/mercurial/hg.py --- a/mercurial/hg.py +++ b/mercurial/hg.py @@ -1294,6 +1294,10 @@ class localrepository: % (changesets, revisions, files)) tr.close() + + if not self.hook("changegroup"): + return 1 + return def update(self, node, allow=False, force=False, choose=None,