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

Pierre-Yves David pierre-yves.david at ens-lyon.org
Sat Oct 3 18:16:29 CDT 2015



On 10/02/2015 11:09 PM, Gregory Szorc wrote:
> On Fri, Oct 2, 2015 at 10:55 PM, Gregory Szorc <gregory.szorc at gmail.com
> <mailto:gregory.szorc at gmail.com>> wrote:
>
>     # HG changeset patch
>     # User Gregory Szorc <gregory.szorc at gmail.com
>     <mailto: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.

I've pulled that version and pushed the result to the clowncopter.

I've some non-blocking comment and followup request in other emails.

-- 
Pierre-Yves David


More information about the Mercurial-devel mailing list