browser icon
You are using an insecure version of your web browser. Please update your browser!
Using an outdated browser makes your computer unsafe. For a safer, faster, more enjoyable user experience, please update your browser today or try a newer browser.

(English) converting bzr to git

Posted by on Freitag, der 28. März 2008

Leider ist der Eintrag nur auf English verfügbar.

3 Responses to (English) converting bzr to git

  1. David

    Your add and commit lines are not necassery.

    Just do:
    git init project.git
    cd project.git
    bzr-fast-export.py –export-marks=.git/bzr.mark ~/project.bzr | git-fast-import –export-marks=.git/git.mark
    This schould convert everything
    “git checkout master” to get the working copy (what you wanted to achieve, with your git add?)

    Now you can incremental import new bzr changes with:
    bzr-fast-export.py –import-marks=.git/bzr.mark –export-marks=.git/bzr.mark project.bzr/trunk | git fast-import –import-marks=.git/git.mark –export-marks=.git/git.mark

    Hoped that helped

  2. Daniel Hahler

    Thanks for this!

    @David: your incremental command does not work – it appears bzr.mark and git.mark have not been created at first, and git throws a fatal error when it cannot read the import-marks file.

    btw: since it’s a bzr plugin (by now), you should call bzr-fast-export as in “bzr fast-export”.

  3. Daniel Hahler

    Sorry, it appears I got the file names wrong.. after a new initial run, I have “bzr.marks” and “git.mark”.

    Additionally, “bzr fast-export” supports using one option (“–marks”) for specifying a mark file for import and export.

Hinterlasse eine Antwort

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind markiert *

*

Du kannst folgende HTML-Tags benutzen: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="">

CommentLuv badge