[PATCH 5 of 5 modernize-streamclone] exchange: move stream clone logic into pull code path

Gregory Szorc gregory.szorc at gmail.com
Sat Oct 3 01:09:51 CDT 2015


On Fri, Oct 2, 2015 at 10:55 PM, Gregory Szorc <gregory.szorc at gmail.com>
wrote:

> # HG changeset patch
> # User Gregory Szorc <gregory.szorc at gmail.com>
> # Date 1443851526 25200
> #      Fri Oct 02 22:52:06 2015 -0700
> # Node ID 686cc1fba3fd38036e39ecf7296ec6c489b99a79
> # Parent  bbc29a9ce3dcbc0fdc721fe638f2329c5d578614
> exchange: move stream clone logic into pull code path
>
> diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py
> --- a/mercurial/localrepo.py
> +++ b/mercurial/localrepo.py
> @@ -1788,10 +1788,8 @@ class localrepository(object):
>
>          keyword arguments:
>          heads: list of revs to clone (forces use of pull)
>          stream: use streaming clone if possible'''
> -        streamclone.maybeperformstreamclone(self, remote, heads, stream)
> -
>          # internal config: ui.quietbookmarkmove
>          quiet = self.ui.backupconfig('ui', 'quietbookmarkmove')
>          try:
>              self.ui.setconfig('ui', 'quietbookmarkmove', True, 'clone')
>

I forgot to drop the "streamclone" import from this file :/ I reckon that
can be fixed in flight.

You can find a correct version at
https://hg.mozilla.org/users/gszorc_mozilla.com/hg/rev/1599701b9d89.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20151002/e6e9f960/attachment.html>


More information about the Mercurial-devel mailing list