| From | Sent On | Attachments |
|---|---|---|
| Michal Kvasnica | Mar 9, 2006 5:02 am | |
| Thibault North | Mar 9, 2006 5:25 am | |
| Benoit Boissinot | Mar 9, 2006 9:15 am | |
| Benoit Boissinot | Mar 9, 2006 9:16 am | |
| Michal Kvasnica | Mar 10, 2006 6:13 am | |
| Thomas Arendsen Hein | Mar 10, 2006 8:49 am | |
| Michal Kvasnica | Mar 10, 2006 9:38 am | |
| Benoit Boissinot | Mar 10, 2006 9:59 am | |
| Michal Kvasnica | Mar 13, 2006 8:16 am | |
| Michal Kvasnica | Mar 24, 2006 7:47 am | |
| Thomas Arendsen Hein | Mar 24, 2006 8:21 am | |
| Thomas Arendsen Hein | Mar 24, 2006 9:56 am | |
| Thomas Arendsen Hein | Mar 24, 2006 12:55 pm |
| Subject: | hg clone via http broken? | |
|---|---|---|
| From: | Michal Kvasnica (kvas...@gmail.com) | |
| Date: | Mar 10, 2006 6:13:34 am | |
| List: | com.selenic.mercurial | |
$ hg clone http://control.ee.ethz.ch/~mpt/hg/mpt/ requesting all changes adding changesets adding manifests adding file changes abort: premature EOF reading chunk (got 1715651 bytes, expected 1851712)! transaction abort! rollback completed
[...]
there is a memory error:
How many memory do you have ? can you monitor the memory usage from the cgi ?
Changing the cache size in revlog.py to 2Mb solved the problem:
diff -r 986e9b109113 mercurial/revlog.py --- a/mercurial/revlog.py Mon Mar 06 23:16:42 2006 +0100 +++ b/mercurial/revlog.py Fri Mar 10 13:14:33 2006 +0100 @@ -501,7 +501,7 @@ class revlog(object): end = start + length
def loadcache(): - cache_length = max(4096 * 1024, length) # 4Mo + cache_length = max(2048 * 1024, length) # 2Mb df = self.opener(self.datafile) df.seek(start) self.chunkcache = (start, df.read(cache_length))
Is there a chance that the cache size could be configured via .hgrc?
Anyhow, I am still puzzled why a 4Mb cache worked with revision 35a05f177267 but does not work since 2e0a288ca93e.
michal





