Mercurial > public > mercurial-scm > hg
comparison mercurial/changegroup.py @ 13459:acbe171c8fbe stable
changegroup: fix typo introduced in 9f2c407caf34
author | Jim Hague <jim.hague@acm.org> |
---|---|
date | Tue, 22 Feb 2011 16:31:01 +0100 |
parents | 9f2c407caf34 |
children | 4ed718f909e5 |
comparison
equal
deleted
inserted
replaced
13458:9f2c407caf34 | 13459:acbe171c8fbe |
---|---|
149 return self._stream.tell() | 149 return self._stream.tell() |
150 def close(self): | 150 def close(self): |
151 return self._stream.close() | 151 return self._stream.close() |
152 | 152 |
153 def chunklength(self): | 153 def chunklength(self): |
154 d = readexactly(stream, 4) | 154 d = readexactly(self._stream, 4) |
155 l = struct.unpack(">l", d)[0] | 155 l = struct.unpack(">l", d)[0] |
156 if l <= 4: | 156 if l <= 4: |
157 if l: | 157 if l: |
158 raise util.Abort(_("invalid chunk length %d") % l) | 158 raise util.Abort(_("invalid chunk length %d") % l) |
159 return 0 | 159 return 0 |