Mercurial > public > mercurial-scm > hg
diff mercurial/httpconnection.py @ 14430:c864f5e743ef
httprepo: handle large lengths by bypassing the len() operator
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Tue, 24 May 2011 17:30:00 -0500 |
parents | 436e5379d7ba |
children | 4a43e23b8c55 |
line wrap: on
line diff
--- a/mercurial/httpconnection.py Tue May 24 14:52:23 2011 +0200 +++ b/mercurial/httpconnection.py Tue May 24 17:30:00 2011 -0500 @@ -37,7 +37,7 @@ self.write = self._data.write self._len = os.fstat(self._data.fileno()).st_size self._pos = 0 - self._total = len(self) / 1024 * 2 + self._total = self._len / 1024 * 2 def read(self, *args, **kwargs): try: