Merge lp://staging/~spiv/bzr-builder/merge-subdirs-479705 into lp://staging/bzr-builder

Proposed by Andrew Bennetts
Status: Merged
Merged at revision: 99
Proposed branch: lp://staging/~spiv/bzr-builder/merge-subdirs-479705
Merge into: lp://staging/bzr-builder
Diff against target: 471 lines (+254/-32)
3 files modified
__init__.py (+23/-1)
recipe.py (+109/-4)
tests/test_recipe.py (+122/-27)
To merge this branch: bzr merge lp://staging/~spiv/bzr-builder/merge-subdirs-479705
Reviewer Review Type Date Requested Status
James Westby Needs Fixing
Review via email: mp+31251@code.staging.launchpad.net

Commit message

Add 'nest-part' instruction to recipes.

Description of the change

See discussion so far at <https://code.edge.launchpad.net/~spiv/bzr-builder/merge-subdirs-479705/+merge/14979>. [Making a new submission because lp:bzr-builder has changed identity since the original proposal.]

In summary: this adds a "nest-part" instruction built on the MergeIntoMerger that is being added to bzr 2.2. This will support the use case of merging just "debian/" into an upstream branch even when the packaging branch is a parallel import vs. upstream.

To post a comment you must log in.
71. By Andrew Bennetts

Merge trunk.

Revision history for this message
James Westby (james-w) wrote :

Hi,

The launchpad team have no plans to provide a newer bzr in older
releases, so I would like to proceed by copying the code in to bzr-builder
where needed.

As for the changes proposed here, they are largely fine.

nest-part packaging lp:~foo-dev/foo/packaging -1 debian

I would like to move the revision spec to the end of the line and make it optional.

I don't mind too much whether it or the target subdir comes first.

134 + op = OperationWithCleanups(nest_part_branch)

I don't think we can rely on OperationWithCleanups as it is fairly new,
so either we copy that too, or we do it the old fashioned way.

Thanks for your work on this. Let me know if you would like me to
make these changes.

Thanks,

James

review: Needs Fixing
Revision history for this message
Martin Pool (mbp) wrote :

What do you mean by "no plans to provide a new bzr in old releases"? Is the
ppa not enough? Should we push to get it into backports or something?

- Martin

On 30/07/2010 7:56 AM, "James Westby"
<<email address hidden><jw%<email address hidden>>>
wrote:

Review: Needs Fixing
Hi,

The launchpad team have no plans to provide a newer bzr in older
releases, so I would like to proceed by copying the code in to bzr-builder
where needed.

As for the changes proposed here, they are largely fine.

nest-part packaging lp:~foo-dev/foo/packaging -1 debian

I would like to move the revision spec to the end of the line and make it
optional.

I don't mind too much whether it or the target subdir comes first.

134 + op = OperationWithCleanups(nest_part_branch)

I don't think we can rely on OperationWithCleanups as it is fairly new,
so either we copy that too, or we do it the old fashioned way.

Thanks for your work on this. Let me know if you would like me to
make these changes.

Thanks,

James

--
https://code.launchpad.net/~spiv/bzr-builder/merge-subdirs-479705/+merge/31251
Your team canoni...

Revision history for this message
James Westby (james-w) wrote :

On Thu, 29 Jul 2010 22:16:41 -0000, Martin Pool <email address hidden> wrote:
> What do you mean by "no plans to provide a new bzr in old releases"? Is the
> ppa not enough? Should we push to get it into backports or something?

https://bugs.edge.launchpad.net/launchpad-code/+bug/603615

They don't plan to put the work in to providing an older bzr to the
builders when doing recipe builds.

Thanks,

James

Revision history for this message
Martin Pool (mbp) wrote :

But they are going to provide a backported bzr-builder (or to run it from a checkout?) That seems a bit strange, but perhaps it's most pragmatic approach.

Revision history for this message
James Westby (james-w) wrote :

On Thu, 05 Aug 2010 01:28:43 -0000, Martin Pool <email address hidden> wrote:
> But they are going to provide a backported bzr-builder (or to run it
> from a checkout?) That seems a bit strange, but perhaps it's most
> pragmatic approach.

They are. However, the other day Aaron was asking about running
bzr-builder outside the chroot so that only one version was used. That
would also enable us to use a newer bzr without backporting. I don't
know if he decided to do this or not.

Thanks,

James

Revision history for this message
Aaron Bentley (abentley) wrote :

We are planning to run bzr-builder outside the chroot. That should reduce the risk of new bzr's contaminating daily builds for old releases, reduce the amount of maintenance required when new releases of bzr-builder become available, and allow us to build from 2a branches into ancient, but still supported, distros like Dapper.

Revision history for this message
Andrew Bennetts (spiv) wrote :

> Thanks for your work on this. Let me know if you would like me to
> make these changes.

The backport of 2.2's MergeIntoMerger and removal of OperationWithCleanups can be found in <https://code.edge.launchpad.net/~spiv/bzr-builder/backport-merge-into/+merge/32428>.

I'm working on the requested syntax change now.

Revision history for this message
Andrew Bennetts (spiv) wrote :

The syntax change is now done. Please review.

72. By Andrew Bennetts

Change the syntax of nest-part to have the revspec at the end, and make it optional.

73. By Andrew Bennetts

Tweak plugin help text.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches