diff mercurial/wireproto.py @ 30014:d34cf260d15b

wireproto: rename argument to groupchunks() groupchunks() is a generic "turn a file object into a generator" function. It isn't limited to changegroups. Rename the argument and update the docstring to reflect this.
author Gregory Szorc <gregory.szorc@gmail.com>
date Sun, 25 Sep 2016 12:20:31 -0700
parents 919a4b7f531d
children 3e86261bf110
line wrap: on
line diff
--- a/mercurial/wireproto.py	Sun Sep 25 13:20:55 2016 -0700
+++ b/mercurial/wireproto.py	Sun Sep 25 12:20:31 2016 -0700
@@ -78,10 +78,11 @@
     #    """
     #    raise NotImplementedError()
 
-    def groupchunks(self, cg):
-        """return 4096 chunks from a changegroup object
+    def groupchunks(self, fh):
+        """Generator of chunks to send to the client.
 
-        Some protocols may have compressed the contents."""
+        Some protocols may have compressed the contents.
+        """
         raise NotImplementedError()
 
 class remotebatch(peer.batcher):