[issue881] out of memory error during "hg convert"

Peter Amstutz mercurial-bugs at selenic.com
Tue Dec 18 11:05:23 CST 2007

New submission from Peter Amstutz <tetron at interreality.org>:

While doing "hg convert" of a large svn repository (5500 commits, several
gigabytes of data, a number of large binary files of 10 to 50 megabytes or more)
I get this error after processing 5100 revisions (only 300 left to go!)

I am using Hg 0.9.5 on Fedora 7:

** 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.5)
Traceback (most recent call last):
  File "/usr/bin/hg", line 14, in <module>
  File "/usr/lib/python2.5/site-packages/mercurial/dispatch.py", line 20, in run
  File "/usr/lib/python2.5/site-packages/mercurial/dispatch.py", line 29, in
    return _runcatch(u, args)
  File "/usr/lib/python2.5/site-packages/mercurial/dispatch.py", line 45, in
    return _dispatch(ui, args)
  File "/usr/lib/python2.5/site-packages/mercurial/dispatch.py", line 348, in
    ret = _runcommand(ui, options, cmd, d)
  File "/usr/lib/python2.5/site-packages/mercurial/dispatch.py", line 401, in
    return checkargs()
  File "/usr/lib/python2.5/site-packages/mercurial/dispatch.py", line 357, in
    return cmdfunc()
  File "/usr/lib/python2.5/site-packages/mercurial/dispatch.py", line 342, in
    d = lambda: func(ui, *args, **cmdoptions)
  File "/usr/lib/python2.5/site-packages/hgext/convert/__init__.py", line 380,
in convert
  File "/usr/lib/python2.5/site-packages/hgext/convert/__init__.py", line 270,
in convert
  File "/usr/lib/python2.5/site-packages/hgext/convert/__init__.py", line 235,
in copy
    data = self.source.getfile(f, v)
  File "/usr/lib/python2.5/site-packages/hgext/convert/subversion.py", line 213,
in getfile
    data, mode = self._getfile(file, rev)
  File "/usr/lib/python2.5/site-packages/hgext/convert/subversion.py", line 644,
in _getfile
    info = svn.ra.get_file(self.ra, file, revnum, io)
  File "/usr/lib/python2.5/site-packages/libsvn/ra.py", line 397, in svn_ra_get_file
    return apply(_ra.svn_ra_get_file, args)
MemoryError: out of memory

messages: 4627
nosy: tetron
priority: bug
status: unread
title: out of memory error during "hg convert"

Mercurial issue tracker <mercurial-bugs at selenic.com>

More information about the Mercurial-devel mailing list