# HG changeset patch # User Matt Mackall # Date 1306276200 18000 # Node ID c864f5e743efefeb667c6f8ffa659a8572047059 # Parent c4c5e3802e9c4b8af96e81cedebac8fda3fe6995 httprepo: handle large lengths by bypassing the len() operator diff -r c4c5e3802e9c -r c864f5e743ef mercurial/httpconnection.py --- 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: