mercurial/localrepo.py
changeset 2613 479e26afa10f
parent 2612 ffb895f16925
child 2621 5a5852a417b1
--- a/mercurial/localrepo.py	Fri Jul 14 11:17:22 2006 -0700
+++ b/mercurial/localrepo.py	Fri Jul 14 14:51:36 2006 -0700
@@ -2225,9 +2225,8 @@
         self.reload()
         return len(self.heads()) + 1
         
-    def clone(self, remote, heads=[], pull=False):
+    def clone(self, remote, heads=[], stream=False):
         '''clone remote repository.
-        if possible, changes are streamed from remote server.
 
         keyword arguments:
         heads: list of revs to clone (forces use of pull)
@@ -2240,7 +2239,7 @@
         # and format flags on "stream" capability, and stream only if
         # compatible.
 
-        if not pull and not heads and remote.capable('stream'):
+        if stream and not heads and remote.capable('stream'):
             return self.stream_in(remote)
         return self.pull(remote, heads)