Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

We have a large bazaar repository and we want to convert it to a git repository. The bazaar repository contains the folders of each of the interns. Any documentation/code prepared by interns is committed in their directory so there are a huge number of commits.

What steps should be performed to securely convert the bazaar repository to a git repository so that we do not lose any commit information.

We firstly need to create a backup of the existing bazaar repository and then convert it.

Edit: I followed this link: http://librelist.com/browser//cville/2010/2/9/migrate-repository-bzr-to-git/

It's working fine on my system with Ubuntu. But when I try to run it on the actual server it gives me EOF error and crashes

Starting export of 1036 revisions ...
fatal: EOF in data (1825 bytes remaining)
fast-import: dumping crash report to .git/fast_import_crash_11804

Edit 2: I also tried it on a new CentOS system and received the following error

fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions
share|improve this question
2  
Sharing your research helps everyone. Tell us what you've tried and why it didn’t meet your needs. This demonstrates that you’ve taken the time to try to help yourself, it saves us from reiterating obvious answers, and most of all it helps you get a more specific and relevant answer. Also see How to Ask –  gnat Jun 25 '13 at 11:07
    
I've edited my question. –  Naruto Uzumaki Jun 25 '13 at 13:39

2 Answers 2

Look at https://github.com/termie/git-bzr-ng. It's a little old but worked fine for me to fork a launchpad project in github. Simply import all bzr branches and push on your remote git server. I recommend using bzr2.2, it was buggy when I tried with newer verion of bzr.

share|improve this answer
    
Thanks for the tips. Which version of bzr and git-bzr-ng did you try it with? What bugs did you encounter? –  nealmcb Dec 24 '13 at 0:09
    
github.com/felipec/git-remote-bzr seems to be the version provided in distributions now. –  Jan Hudec Jul 28 at 9:11

Currently Debian provides the integration via git-remote-bzr package, which lists as it's homepage https://github.com/felipec/git-remote-bzr.

share|improve this answer

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.