Merge lp:~jelmer/bzr/testament-tree into lp:bzr
Proposed by
Jelmer Vernooij
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Jelmer Vernooij | ||||
Approved revision: | no longer in the source branch. | ||||
Merged at revision: | 5804 | ||||
Proposed branch: | lp:~jelmer/bzr/testament-tree | ||||
Merge into: | lp:bzr | ||||
Diff against target: |
271 lines (+79/-32) 7 files modified
bzrlib/bundle/bundle_data.py (+32/-12) bzrlib/bundle/serializer/v08.py (+2/-2) bzrlib/bundle/serializer/v09.py (+2/-2) bzrlib/repository.py (+3/-1) bzrlib/testament.py (+22/-12) bzrlib/tests/test_testament.py (+15/-3) doc/en/release-notes/bzr-2.4.txt (+3/-0) |
||||
To merge this branch: | bzr merge lp:~jelmer/bzr/testament-tree | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Martin Pool | Approve | ||
Review via email: mp+58243@code.launchpad.net |
This proposal supersedes a proposal from 2011-04-18.
Commit message
Make TestamentTree use a Tree rather than an Inventory.
Description of the change
Make Testament take a Tree rather than an Inventory.
To post a comment you must log in.
I'm not generally a big fan of changing the expected parameter types for existing methods because it can lead to confusing failures in Python. There may not be an out-of-tree users of these though.
In order of decreasing complexity and decreasing niceness- to-callers:
* add a new method and retain but deprecate the old one.
* rename the methods/classes when you change their parameters
* check the argument type passed in and complain if it's an Inventory
the last is fine with me.