Allow merge-in of bzr branches
Bug #1274174 reported by
Stefan Rijnhart (Opener)
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenERP buildout recipe |
Fix Committed
|
Undecided
|
Unassigned |
Bug Description
Hi,
thank you for creating and maintaining a buildout recipe for OpenERP! Being new to buildout, it looks interesting but we have a requirement that I cannot seem to find any documentation about: we usually run our setups with one or more bugfixes which have been submitted to Launchpad merged into the bzr branch.
It seems that the support for bzr is included in the anybox package, and it does not cover this use case. I was wondering if you'd be interested in having this functionality.
Related branches
lp://qastaging/~therp-nl/anybox.recipe.openerp/trunk-bzr-merge
- Georges Racinet: Approve
-
Diff: 184 lines (+95/-2)4 files modifiedanybox/recipe/openerp/base.py (+58/-0)
anybox/recipe/openerp/vcs/bzr.py (+9/-2)
anybox/recipe/openerp/vcs/tests/test_bzr.py (+18/-0)
doc/configuration.rst (+10/-0)
description: | updated |
description: | updated |
To post a comment you must log in.
Thank you for the suggestion.
Just to check understanding of the use-case : on such setups, you have commits that aren't in the remote branch and you want to remerge the remote branch each time you run 'bin/buildout'
I suppose this implies that the end local result is actually not shared with other systems.
For practices at Anybox, which involve lots of continuous integration based on that same buildout configuration, we'd probably want to share the resulting branch (so that builders can grab it). Therefore, I think we would not have this use-case so directly (we've been avoiding bzr as much as possible for its poor performance and reliability in automated environments).
That being said, I guess this feature would be a nice path toward full automation of a derivative distribution : imagine a CI build that would run such a configuration, automatically merging upstream, running the tests and ending with an automated push. I could probably introduce that in our buildbot configurations in an hour of work time. And that's something I'd love to have very soon. It would alleviate a lot the maintainance burden of a derivative distribution such as OCB.
Maybe this can help for advanced CI practices, such as gated commit (where the CI robot takes care of merging developer branches in the trunk).
This raises a few more practical questions, but I think I'll post them on your merge request.
As a side remark, the first version of the git support did behave like this : it used to issue 'git pull' commands instead of the proper 'fetch' + 'checkout' combination. That was corrected, I believe, by Laurent Mignon, but we could easily restore it optionnaly.
In Mercurial, the same result would be achieved by issueing 'hg merge' + 'hg commit' after the retrieval part ('pull' + 'update')
Forget SVN ;-)