statichttprepo.httprangeheader: implement readlines
bookmarks.readcurrent() requires readlines() on file objects returned from
repo.vfs. It isn't used right now but will be in upcoming patches.
--- a/mercurial/statichttprepo.py Sun Nov 17 13:28:11 2013 -0800
+++ b/mercurial/statichttprepo.py Sun Nov 17 13:31:18 2013 -0800
@@ -54,8 +54,10 @@
data = data[:bytes]
self.pos += len(data)
return data
+ def readlines(self):
+ return self.read().splitlines(True)
def __iter__(self):
- return iter(self.read().splitlines(True))
+ return iter(self.readlines())
def close(self):
pass