Dear community,
First of all, thank you Anthony for pointing this up ! I just tested it and it
just work like a charm :)
I may be give some more detailed informations about the procedure I've just
tested:
1) Let's install the fasti-import Bazaar plugin by copying it into
~.bazaar/plugins/ (see https://launchpad.net/bzr-fastimport)
2) Take a branch you want to extract one folder from, here I took : bzr branch
lp:c2c-addons/6.1 c2c-addons-61
3) Export all history into the stream : bzr fast-export c2c-addons-61 >
test.fi <http://test.fi>
4) Filter the folder you wanna extract from, here analytic_hours_block, into
another stream : bzr fast-import-filter -i analytic_hours_block test.fi
<http://test.fi> > subfolder.fi <http://subfolder.fi>
5) Make a new folder and init it with bazaar: mkdir my_new_branch; cd
my_new_branch; bzr init .
6) Import all the history from the filtered stream : bzr fast-import
../subfolder.fi <http://subfolder.fi>
Note there are quite lots of options with bzr fast-import-filter, you can
exclude folder instead of including one, as well as including more than one
folder like:
bzr fast-import-filter -i analytic_department/ -i analytic_hours_block/
test.fi <http://test.fi> > subfolder.fi <http://subfolder.fi>
Hope this helps,
Regards,
Joël
Le 2 nov. 2012 à 01:30, Antony Lesuisse <al@xxxxxxxxxxx
<mailto:al@xxxxxxxxxxx>> a écrit :
We already moved some modules from addons that we want to remove from the
core, to their own branch (sometimes grouped by topic) here:
https://code.launchpad.net/openerp-extra
We also started to move some modules from extra-addons there like
https://code.launchpad.net/~openerp-community/openerp-extra/7.0-olap
I used fast-export fast-import with a filter to keep the history.
We use the convention "MAJOR-OPENERP-VERSION-branch-name" like we do for the
addons, server and web branches.
--
*Joël Grand-Guillaume***
*Division Manager*
*Business Solutions*
*
*
*Camptocamp SA*
PSE A, CH-1015 Lausanne
http://openerp.camptocamp.com/
Phone: +41 21 619 10 28
Office: +41 21 619 10 10
Fax: +41 21 619 10 00
Email: joel.grandguillaume@xxxxxxxxxxxxxx
<mailto:joel.grandguillaume@xxxxxxxxxxxxxx>