[issue2345] Clone fails "out of memory"

Leonardo bugs at mercurial.selenic.com
Mon Aug 23 10:32:36 UTC 2010


New submission from Leonardo <ramosl8029 at yahoo.com>:

it appears it creates the indexfile or the datafile in memory
the openbravo repo is very big
os is xandros debian linux on a eeepc 1GB Ram  noswap

hg --debug clone --noupdate https://code.openbravo.com/erp/devel/pi export      

adding src-db/test/stableDatabase/sampledata/C_YEAR.xml revisions
adding src-db/test/stableDatabase/sampledata/DBA_ERRORLOG.xml revisions
adding src-db/test/stableDatabase/sampledata/FACT_ACCT.xml revisions
** unknown exception encountered, details follow
** report bug details to http://www.selenic.com/mercurial/bts
** or mercurial at selenic.com
** Mercurial Distributed SCM (version 0.9.1)
Traceback (most recent call last):
  File "/usr/bin/hg", line 12, in ?
    commands.run()
  File "/var/lib/python-support/python2.4/mercurial/commands.py", line 3266,
in run
    sys.exit(dispatch(sys.argv[1:]))
  File "/var/lib/python-support/python2.4/mercurial/commands.py", line 3465,
in dispatch
    return d()
  File "/var/lib/python-support/python2.4/mercurial/commands.py", line 3426,
in <lambda>
    d = lambda: func(u, *args, **cmdoptions)
  File "/var/lib/python-support/python2.4/mercurial/commands.py", line 979,
in clone
    update=not opts['noupdate'])
  File "/var/lib/python-support/python2.4/mercurial/hg.py", line 186, in clone
    dest_repo.clone(src_repo, heads=revs, stream=stream)
  File "/var/lib/python-support/python2.4/mercurial/localrepo.py", line
2248, in clone
    return self.pull(remote, heads)
  File "/var/lib/python-support/python2.4/mercurial/localrepo.py", line
1177, in pull
    return self.addchangegroup(cg, 'pull')
  File "/var/lib/python-support/python2.4/mercurial/localrepo.py", line
1642, in addchangegroup
    if fl.addgroup(chunkiter, revmap, tr) is None:
  File "/var/lib/python-support/python2.4/mercurial/revlog.py", line 1177,
in addgroup
    text = self.patches(text, [delta])
  File "/var/lib/python-support/python2.4/mercurial/revlog.py", line 774, in
patches
    return mdiff.patches(t, pl)
MemoryError
transaction abort!
rollback completed

----------
messages: 13454
nosy: ramosl8029
priority: critical
status: unread
title: Clone fails "out of memory"

____________________________________________________
Mercurial issue tracker <bugs at mercurial.selenic.com>
<http://mercurial.selenic.com/bts/issue2345>
____________________________________________________


More information about the Mercurial-devel mailing list