Mercurial > hg-stable
changeset 35802:bbc07357b567 stable
streamclone: rename '_emit' to '_emit2' for clarity
This change was suggested by Gregory Szorc.
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Wed, 24 Jan 2018 21:37:48 +0100 |
parents | 373fb3f5922c |
children | 3ad3aaeb1134 |
files | mercurial/streamclone.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/streamclone.py Tue Jan 23 21:14:36 2018 +0900 +++ b/mercurial/streamclone.py Wed Jan 24 21:37:48 2018 +0100 @@ -484,7 +484,7 @@ 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 @@ 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