diff mercurial/sshserver.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 1a29db79a98d
children d105195436c0
line wrap: on
line diff
--- a/mercurial/sshserver.py	Sun Sep 25 13:20:55 2016 -0700
+++ b/mercurial/sshserver.py	Sun Sep 25 12:20:31 2016 -0700
@@ -68,8 +68,8 @@
     def redirect(self):
         pass
 
-    def groupchunks(self, changegroup):
-        return iter(lambda: changegroup.read(4096), '')
+    def groupchunks(self, fh):
+        return iter(lambda: fh.read(4096), '')
 
     def sendresponse(self, v):
         self.fout.write("%d\n" % len(v))