[PATCH 1 of 4 STABLE follow-up] streamclone: rename '_emit' to '_emit2' for clarity
Gregory Szorc
gregory.szorc at gmail.com
Mon Jan 29 14:49:58 EST 2018
On Fri, Jan 26, 2018 at 8:07 AM, Boris Feld <boris.feld at octobus.net> wrote:
> # HG changeset patch
> # User Boris Feld <boris.feld at octobus.net>
> # Date 1516826268 -3600
> # Wed Jan 24 21:37:48 2018 +0100
> # Branch stable
> # Node ID 7d4c20e651bebd76f09183681ba9d743834dc53d
> # Parent de23345e2b6b880880896e27e5e2f745efa3799b
> # EXP-Topic b2-stream
> # Available At https://bitbucket.org/octobus/mercurial-devel/
> # hg pull https://bitbucket.org/octobus/mercurial-devel/ -r
> 7d4c20e651be
> streamclone: rename '_emit' to '_emit2' for clarity
>
Queued for stable. Thank you for the minor fixups.
>
> This change was suggested by Gregory Szorc.
>
> diff --git a/mercurial/streamclone.py b/mercurial/streamclone.py
> --- a/mercurial/streamclone.py
> +++ b/mercurial/streamclone.py
> @@ -484,7 +484,7 @@ def _makemap(repo):
>
> return vfsmap
>
> -def _emit(repo, entries, totalfilesize):
> +def _emit2(repo, entries, totalfilesize):
> """actually emit the stream bundle"""
> vfsmap = _makemap(repo)
> progress = repo.ui.progress
> @@ -555,7 +555,7 @@ def generatev2(repo):
> totalfilesize += repo.cachevfs.lstat(name).st_size
> entries.append((_srccache, name, _filefull, None))
>
> - chunks = _emit(repo, entries, totalfilesize)
> + chunks = _emit2(repo, entries, totalfilesize)
> first = next(chunks)
> assert first is None
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mercurial-scm.org/pipermail/mercurial-devel/attachments/20180129/fd5e29a7/attachment.html>
More information about the Mercurial-devel
mailing list