Migrate Large Bazaar Repositories to Git

20. March 2019 16:18 by Cameron in Source Control  //  Tags: , , ,   //   Comments

I recently was tasked with migrating my company's Bazaar repository to Git, but using Bazaar and Git for Windows wasn't working quite right. Every time I would try to do the migration, Bazaar would run out of memory. After further research, I found that this was due to Bazaar on Windows attempting to load all files into memory and this was exceeding the 32bit process memory limit of 2GB. It was important to maintain commit history since we will eventually be retiring Bazaar and we don't want to reference Bazaar's revision history.

In comes Windows Subsystem for Linux (WSL):

With Windows Subsystem for Linux, I was able to get Ubuntu 18.04 LTS installed and setup Bazaar and Git. When running Bazaar from Ubuntu 18.04 LTS in the WSL, the migration completed successfully. The Bazaar process had 64bit process memory available and didn't fail from being out of memory. Setting up the WSL took about 10 minutes and the full migration process took about 10 minutes. Within 20 minutes I was ready to push to our Git server after the migration.

blog comments powered by Disqus

Month List

Tag cloud