##// 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 def close(self):
196 def close(self):
197 return self._stream.close()
197 return self._stream.close()
198
198
199 def chunklength(self):
199 def _chunklength(self):
200 d = readexactly(self._stream, 4)
200 d = readexactly(self._stream, 4)
201 l = struct.unpack(">l", d)[0]
201 l = struct.unpack(">l", d)[0]
202 if l <= 4:
202 if l <= 4:
@@ -217,7 +217,7 b' class cg1unpacker(object):'
217
217
218 def filelogheader(self):
218 def filelogheader(self):
219 """return the header of the filelogs chunk, v10 only has the filename"""
219 """return the header of the filelogs chunk, v10 only has the filename"""
220 l = self.chunklength()
220 l = self._chunklength()
221 if not l:
221 if not l:
222 return {}
222 return {}
223 fname = readexactly(self._stream, l)
223 fname = readexactly(self._stream, l)
@@ -232,7 +232,7 b' class cg1unpacker(object):'
232 return node, p1, p2, deltabase, cs
232 return node, p1, p2, deltabase, cs
233
233
234 def deltachunk(self, prevnode):
234 def deltachunk(self, prevnode):
235 l = self.chunklength()
235 l = self._chunklength()
236 if not l:
236 if not l:
237 return {}
237 return {}
238 headerdata = readexactly(self._stream, self.deltaheadersize)
238 headerdata = readexactly(self._stream, self.deltaheadersize)
General Comments 0
You need to be logged in to leave comments. Login now