When I try to do a bzr branch from my svn repository I get an out of memory error. The svn repository is very large. Is there a way to give bzr more memory?

share|improve this question
up vote 5 down vote accepted

Try to branch in small steps. I.e. if you have 1000 revisions in your svn repo, try to branch by 100 revisions or so. I.e. first step

bzr branch URL/to/svn/repo -r100

Then increment revno by the 100

bzr pull -r200
bzr pull -r300

and so on.

share|improve this answer
    
I tried this, bzr pull -r20 works, but bzr pull -r21 fails with out of memory error. – cquillen Jan 15 '10 at 21:26
    
So, about adding memory. You may want to try 2.1.0b4 or rc1 or even final which uses less memory than bzr 2.0.x. Also you may want to try to run conversion on 64-bit machine, because on 32-bit machine bzr (as being written in Python tool) can't use more than 2GB (3GB if you have enabled this in your BIOS and OS). Please, send your question to main bzr mailing list, thus you'll have more helpful suggestions. lists.canonical.com/mailman/listinfo/bazaar or news.gmane.org/gmane.comp.version-control.bazaar-ng.general – bialix Jan 15 '10 at 21:43
1  
Version 2.1 did not work, but using a 64-bit machine did. – cquillen Jan 18 '10 at 17:53
    
When you'll finish the conversion, please send your impressions to bzr mailing list. thanks. – bialix Jan 18 '10 at 18:57
1  
This is actually a (very serious) bzr limitation - it reads the files into memory. See bugs.launchpad.net/bzr/+bug/109114 – yhager Dec 15 '10 at 2:19

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.