# HG changeset patch # User Boris Feld # Date 2018-01-24 20:37:48 # Node ID bbc07357b56714617a2b2313f6f7f75028d7da5e # Parent 373fb3f5922c8437977a665861c55bd9f570e210 streamclone: rename '_emit' to '_emit2' for clarity 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