← Back to team overview

openerp-expert-framework team mailing list archive

Script for replaying massively your commit from a branch to an other

 

Hi all
Just a quick talk about a script that I have just done (or started ;) ).
It's just a prototype, but it's work and can help you (if you want to
improve it, you're welcome).
Indeed today I try to replay all commit from some module
(base_sale_multichannels, base_external_referentials, sale_bundle_product,
sale_exceptions, base_scheduler_creator, product_variant_multi,
product_variant_multi_advanced...) of the extra-addons to extra-trunk.
And also to extract all commit of the module kettle connector in order to
create a dedicaced branch for this module.
So it was a lot of commit (more than 120...) hided in the 5400 commit of the
extra addons...
The result :
https://code.launchpad.net/~akretion-team/kettle-connector/kettle_connector(arrount
60 commit to extract and replay)

In order to be more clean for the extra addons I replay the commit all the
commit in a branch and than I merge it
http://bazaar.launchpad.net/~openerp-commiter/openobject-addons/trunk-extra-addons/changes/5398
http://bazaar.launchpad.net/~openerp-commiter/openobject-addons/trunk-extra-addons/changes/5353.1.37(arrount
40 commit to extract and replay)

This is a ruby script, to install just copy paste it in /usr/local/bin make
it executable, and after that you just have to go in your branch where you
want to replay all of the commit and type:
        bzr-super-replay path revno --module module1 module2 module3
you can also type :
bzr-super-replay --help
to see the help message

Notice for the moment the option --module (or -m) is required, I will make
it optionnal latter.

Moreover maybe the best option will to create a bzr plugin, but right now I
am very busy so I just share this script that can avoid some headhack.
Hope it can help someone.

My 2 cents

-- 

BEAU Sébastien
skype : sebastien_beau
www.akretion.com

Attachment: bzr-super-replay
Description: Binary data


Follow ups