changeset 780:5cb8a3a023b2

Add changegroup hook for push/pull
author mpm@selenic.com
date Wed, 27 Jul 2005 09:07:28 -0800
parents b3c7cb74d325
children 26f3d353851f
files mercurial/hg.py
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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,