Difference between revisions of "Converting git repository to bazaar"

From Notes_Wiki
(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...")
 
m
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
<yambe:breadcrumb>Bazaar|Bazaar</yambe:breadcrumb>
[[Main Page|Home]] > [[CentOS]] > [[CentOS 6.x]] > [[Versioning tools]] > [[Git|git]] > [[Converting git repository to bazaar]]
=Converting git repository to bazaar=
 
[[Main Page|Home]] > [[CentOS]] > [[CentOS 6.x]] > [[Versioning tools]] > [[Bazaar]] > [[Converting git repository to bazaar]]


To convert git repository to bazaar repository use following steps:
To convert git repository to bazaar repository use following steps:
Line 9: Line 10:
#:</pre>
#:</pre>
#:Otherwise if only one branch has to be converted then create a standalone bazaar branch using:
#:Otherwise if only one branch has to be converted then create a standalone bazaar branch using:
#:<pre>
#::<pre>
#::bzr init bzr-branch1
#:::bzr init bzr-branch1
#:</pre>
#::</pre>
#Go to git repository folder and use command:
#Go to git repository folder and use command:
#:<pre>
#:<pre>
Line 19: Line 20:
#Go to bazaar folder and check logs using '<tt>bzr log -l 3</tt>'
#Go to bazaar folder and check logs using '<tt>bzr log -l 3</tt>'
#If everything is fine optionally remove git repository or branch and rename bazaar folder appropriately.
#If everything is fine optionally remove git repository or branch and rename bazaar folder appropriately.
[[Main Page|Home]] > [[CentOS]] > [[CentOS 6.x]] > [[Versioning tools]] > [[Git|git]] > [[Converting git repository to bazaar]]
[[Main Page|Home]] > [[CentOS]] > [[CentOS 6.x]] > [[Versioning tools]] > [[Bazaar]] > [[Converting git repository to bazaar]]

Latest revision as of 15:45, 24 August 2022

Home > CentOS > CentOS 6.x > Versioning tools > git > Converting git repository to bazaar

Home > CentOS > CentOS 6.x > Versioning tools > Bazaar > 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
  3. 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
  4. Go to bazaar folder and check logs using 'bzr log -l 3'
  5. If everything is fine optionally remove git repository or branch and rename bazaar folder appropriately.



Home > CentOS > CentOS 6.x > Versioning tools > git > Converting git repository to bazaar

Home > CentOS > CentOS 6.x > Versioning tools > Bazaar > Converting git repository to bazaar