Mercurial > public > mercurial-scm > hg
diff mercurial/hg.py @ 8907:e9ef409e6399
Add (pre)outgoing hooks for local clones.
author | Fred Wulff <frew@cs.stanford.edu> |
---|---|
date | Fri, 17 Apr 2009 16:34:43 -0700 |
parents | ab668c92a036 |
children | a458b9bf4f3a d7d3afd935fa |
line wrap: on
line diff
--- 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)