Mercurial > public > mercurial-scm > hg-stable
diff mercurial/localrepo.py @ 2613:479e26afa10f
clone: do not make streaming default. add --stream option instead.
author | Vadim Gelfer <vadim.gelfer@gmail.com> |
---|---|
date | Fri, 14 Jul 2006 14:51:36 -0700 |
parents | ffb895f16925 |
children | 5a5852a417b1 |
line wrap: on
line diff
--- 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)