--- a/mercurial/hg.py Fri Jul 14 11:17:22 2006 -0700
+++ b/mercurial/hg.py Fri Jul 14 14:51:36 2006 -0700
@@ -74,7 +74,8 @@
scheme)
return ctor(ui, path)
-def clone(ui, source, dest=None, pull=False, rev=None, update=True):
+def clone(ui, source, dest=None, pull=False, rev=None, update=True,
+ stream=False):
"""Make a copy of an existing repository.
Create a copy of an existing repository in a new directory. The
@@ -96,6 +97,8 @@
pull: always pull from source repository, even in local case
+ stream: stream from repository (fast over LAN, slow over WAN)
+
rev: revision to clone up to (implies pull=True)
update: update working directory after clone completes, if
@@ -179,7 +182,7 @@
revs = [src_repo.lookup(r) for r in rev]
if dest_repo.local():
- dest_repo.clone(src_repo, heads=revs, pull=pull)
+ dest_repo.clone(src_repo, heads=revs, stream=stream)
elif src_repo.local():
src_repo.push(dest_repo, revs=revs)
else: