mercurial/hg.py
changeset 780 5cb8a3a023b2
parent 772 f05deda58457
child 781 26f3d353851f
--- 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,