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
+++ 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,