--- 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)