##// END OF EJS Templates
changegroup: mark cg1unpacker.chunklength as private
Augie Fackler -
r26707:5ee6bd52 default
parent child Browse files
Show More
@@ -196,7 +196,7 b' class cg1unpacker(object):'
196 196 def close(self):
197 197 return self._stream.close()
198 198
199 def chunklength(self):
199 def _chunklength(self):
200 200 d = readexactly(self._stream, 4)
201 201 l = struct.unpack(">l", d)[0]
202 202 if l <= 4:
@@ -217,7 +217,7 b' class cg1unpacker(object):'
217 217
218 218 def filelogheader(self):
219 219 """return the header of the filelogs chunk, v10 only has the filename"""
220 l = self.chunklength()
220 l = self._chunklength()
221 221 if not l:
222 222 return {}
223 223 fname = readexactly(self._stream, l)
@@ -232,7 +232,7 b' class cg1unpacker(object):'
232 232 return node, p1, p2, deltabase, cs
233 233
234 234 def deltachunk(self, prevnode):
235 l = self.chunklength()
235 l = self._chunklength()
236 236 if not l:
237 237 return {}
238 238 headerdata = readexactly(self._stream, self.deltaheadersize)
General Comments 0
You need to be logged in to leave comments. Login now