mercurial/hg.py
changeset 8907 e9ef409e6399
parent 8814 ab668c92a036
child 9171 a458b9bf4f3a
child 9245 d7d3afd935fa
--- a/mercurial/hg.py	Tue Jun 23 14:14:48 2009 +0200
+++ b/mercurial/hg.py	Fri Apr 17 16:34:43 2009 -0700
@@ -231,6 +231,7 @@
                 copy = False
 
         if copy:
+            src_repo.hook('preoutgoing', throw=True, source='clone')
             hgdir = os.path.realpath(os.path.join(dest, ".hg"))
             if not os.path.exists(dest):
                 os.mkdir(dest)
@@ -262,7 +263,7 @@
             # we need to re-init the repo after manually copying the data
             # into it
             dest_repo = repository(ui, dest)
-
+            src_repo.hook('outgoing', source='clone', node='0'*40)
         else:
             try:
                 dest_repo = repository(ui, dest, create=True)