Converting git repository to bazaar

From Notes_Wiki
Revision as of 13:40, 2 December 2012 by Saurabh (talk | contribs) (Created page with "<yambe:breadcrumb>Bazaar|Bazaar</yambe:breadcrumb> =Converting git repository to bazaar= To convert git repository to bazaar repository use following steps: #Install bzr-fast...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<yambe:breadcrumb>Bazaar|Bazaar</yambe:breadcrumb>

Converting git repository to bazaar

To convert git repository to bazaar repository use following steps:

  1. Install bzr-fastimport plugin using 'yum -y install bzr-fastimport'
  2. If multiple branches have to be converted then create bazaar repository using:
    bzr init-repo bzr-repo1
    Otherwise if only one branch has to be converted then create a standalone bazaar branch using:

#::bzr init bzr-branch1 #:

  1. Go to git repository folder and use command:
    git fast-export -M --all | (cd <bazaar repository or branch folder>; bzr fast-import -)
    Replace <bazaar repository or branch folder> with correct path
  2. Go to bazaar folder and check logs using 'bzr log -l 3'
  3. If everything is fine optionally remove git repository or branch and rename bazaar folder appropriately.