Mercurial > hg-stable
changeset 26707:5ee6bd529300
changegroup: mark cg1unpacker.chunklength as private
author | Augie Fackler <augie@google.com> |
---|---|
date | Wed, 14 Oct 2015 11:58:56 -0400 |
parents | 8c0c3059f478 |
children | 749d913f24b8 |
files | mercurial/changegroup.py |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/changegroup.py Wed Oct 14 11:58:35 2015 -0400 +++ b/mercurial/changegroup.py Wed Oct 14 11:58:56 2015 -0400 @@ -196,7 +196,7 @@ def close(self): return self._stream.close() - def chunklength(self): + def _chunklength(self): d = readexactly(self._stream, 4) l = struct.unpack(">l", d)[0] if l <= 4: @@ -217,7 +217,7 @@ def filelogheader(self): """return the header of the filelogs chunk, v10 only has the filename""" - l = self.chunklength() + l = self._chunklength() if not l: return {} fname = readexactly(self._stream, l) @@ -232,7 +232,7 @@ return node, p1, p2, deltabase, cs def deltachunk(self, prevnode): - l = self.chunklength() + l = self._chunklength() if not l: return {} headerdata = readexactly(self._stream, self.deltaheadersize)