--- a/mercurial/hg.py Wed Jul 27 08:19:59 2005 -0800 +++ b/mercurial/hg.py Wed Jul 27 09:07:28 2005 -0800 @@ -1294,6 +1294,10 @@ % (changesets, revisions, files)) tr.close() + + if not self.hook("changegroup"): + return 1 + return def update(self, node, allow=False, force=False, choose=None,