streamclone: rename '_emit' to '_emit2' for clarity
This change was suggested by Gregory Szorc.
--- 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