streamclone: rename '_emit' to '_emit2' for clarity stable
authorBoris Feld <boris.feld@octobus.net>
Wed, 24 Jan 2018 21:37:48 +0100
branchstable
changeset 35802 bbc07357b567
parent 35801 373fb3f5922c
child 35803 3ad3aaeb1134
streamclone: rename '_emit' to '_emit2' for clarity This change was suggested by Gregory Szorc.
mercurial/streamclone.py
--- 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