From: Gabriel Filion <lelutin@gmail.com>
To: Dmitri Pissarenko <dmitri.pissarenko@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: How to import bzr repository into git
Date: Tue, 16 Nov 2010 19:22:58 -0500 [thread overview]
Message-ID: <4CE32062.6010308@gmail.com> (raw)
In-Reply-To: <AANLkTimPmPOJq64=VePSb2efsx17j8BNxCLt_i=b2ykW@mail.gmail.com>
On 11/16/2010 02:57 PM, Dmitri Pissarenko wrote:
> Hello!
>
> I want to migrate one of my projects from Bazaar to git, preserving the history.
>
> How can I do that in Windows (import an existing Bazaar project into a
> new/empty git repository) ?
>
Have a look at "bzr-fastimport" [1]. it's a Bazaar plugin that can help
you to transform the bzr history into a git one.
[1]: https://launchpad.net/bzr-fastimport
I haven't done a lot of testing with shared-tree Bazaar repositories (a
repository with multiple branches in it) but I suspect it would not work
very well with such a layout.. If you're doing a one-time conversion of
a one-branch repository, it works pretty well.
Once Bazaar and the bzr-fastimport plugin are installed, you mostly need
to run those commands :
git init project
cd project
bzr fast-export --export-marks=../bzr.mark /path/to/old/bzr/project
| git-fast-import --export-marks=../git.mark
you now have, in the new git project, a "master" branch with all the
history from the bzr repository and all tags.
--
Gabriel Filion
next prev parent reply other threads:[~2010-11-17 0:23 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <AANLkTinVrwkOvYgGFX3S2530jfWnrAP28gVm4te1B4sC@mail.gmail.com>
2010-11-16 19:57 ` How to import bzr repository into git Dmitri Pissarenko
2010-11-16 20:05 ` Ævar Arnfjörð Bjarmason
2010-11-17 0:22 ` Gabriel Filion [this message]
2010-11-18 14:34 ` Dmitri Pissarenko
2010-11-18 15:25 ` Ævar Arnfjörð Bjarmason
2010-11-18 16:37 ` Jonathan Nieder
2010-11-18 16:38 ` Jonathan Nieder
2010-11-19 21:34 ` Gabriel Filion
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4CE32062.6010308@gmail.com \
--to=lelutin@gmail.com \
--cc=dmitri.pissarenko@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).