[issue800] hg convert throws a MemoryError for a CVS repo

Mirko Friedenhagen mercurial-bugs at selenic.com
Fri Oct 26 21:15:27 UTC 2007


New submission from Mirko Friedenhagen <mirko-lists at friedenhagen.de>:

OS: Mac OS X 10.4.10
Python 2.5.1 (r251:54869, Apr 18 2007, 22:08:04) 
[GCC 4.0.1 (Apple Computer, Inc. build 5367)] on darwin
RAM: 1.2GB
Free Diskspace: 7.7 GB

I checked out the hudson-CVS-repo  (du -sh hudson-cvs = 78MB) and wanted to 
convert it to hg:

[mirko at borg Software]$ hg -v convert hudson-cvs                                                                                                                       
assuming destination hudson-cvs-hg                                                                                                                                    
destination hudson-cvs-hg is a Mercurial repository                                                                                                                   
connecting to :pserver:mfriedenhagen at cvs.dev.java.net:/cvs                                                                                                            
scanning source...                                                                                                                                                    
sorting...                                                                                                                                                            
converting...                                                                                                                                                         
5222 initial import                                                                                                                                                   
Python(2665) malloc: *** vm_allocate(size=7442432) failed (error code=3)                                                                                              
Python(2665) malloc: *** error: can't allocate region                                                                                                                 
Python(2665) malloc: *** set a breakpoint in szone_error to debug                                                                                                     
** 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/local/bin/hg", line 14, in <module>                                                                                                                      
    mercurial.dispatch.run()                                                                                                                                          
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-
packages/mercurial/dispatch.py", line 20, in run                                         
    sys.exit(dispatch(sys.argv[1:]))                                                                                                                                  
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-
packages/mercurial/dispatch.py", line 29, in dispatch                                    
    return _runcatch(u, args)                                                                                                                                         
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-
packages/mercurial/dispatch.py", line 45, in _runcatch                                   
    return _dispatch(ui, args)                                                                                                                                        
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-
packages/mercurial/dispatch.py", line 348, in _dispatch                                  
    ret = _runcommand(ui, options, cmd, d)                                                                                                                            
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-
packages/mercurial/dispatch.py", line 401, in _runcommand                                
    return checkargs()                                                                                                                                                
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-
packages/mercurial/dispatch.py", line 357, in checkargs                                  
    return cmdfunc()                                                                                                                                                  
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-
packages/mercurial/dispatch.py", line 342, in <lambda>                                   
    d = lambda: func(ui, *args, **cmdoptions)                                                                                                                         
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-
packages/hgext/convert/__init__.py", line 380, in convert                                
    c.convert()                                                                                                                                                       
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-
packages/hgext/convert/__init__.py", line 270, in convert                                
    self.copy(c)                                                                                                                                                      
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-
packages/hgext/convert/__init__.py", line 235, in copy                                   
    data = self.source.getfile(f, v)                                                                                                                                  
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-
packages/hgext/convert/cvs.py", line 250, in getfile                                     
    data, mode = self._getfile(file, rev)                                                                                                                             
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-
packages/hgext/convert/cvs.py", line 228, in _getfile                                    
    data = self.readp.read(count)                                                                                                                                     
  File 
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/socket.py", 
line 309, in read                                                                 
    data = self._sock.recv(recv_size)                                                                                                                                 
MemoryError

----------
messages: 4197
nosy: mfriedenhagen
priority: bug
status: unread
title: hg convert throws a MemoryError for a CVS repo

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




More information about the Mercurial-devel mailing list