Merge lp:~abudden/bzr/switch_parent_513709 into lp:bzr
Proposed by
Dr Al
Status: | Merged |
---|---|
Approved by: | Vincent Ladeuil |
Approved revision: | no longer in the source branch. |
Merged at revision: | 5835 |
Proposed branch: | lp:~abudden/bzr/switch_parent_513709 |
Merge into: | lp:bzr |
Diff against target: |
177 lines (+101/-4) 5 files modified
bzrlib/branch.py (+5/-1) bzrlib/switch.py (+1/-0) bzrlib/tests/blackbox/test_branch.py (+31/-0) bzrlib/tests/blackbox/test_switch.py (+61/-3) doc/en/release-notes/bzr-2.4.txt (+3/-0) |
To merge this branch: | bzr merge lp:~abudden/bzr/switch_parent_513709 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Vincent Ladeuil | Approve | ||
Review via email: mp+59924@code.launchpad.net |
Commit message
Set correct parent when using 'switch -b' with bound branches (Fix for Bug #513709).
Description of the change
Work in progress towards fixing Bug 513709.
To post a comment you must log in.
The background for this (in addition to the bug report) is I'd really like to see the "changes relative to parent" view when using bound branches with a feature branch model. I think this is the first change that is required, but in Bazaar Explorer's view_workingtree.py there is the comment:
# Display the delta versus the submit branch iff one is
# defined and it's local. Unfortunately though, merging a feature
# branch into trunk sets the merged-from branch as the submit
# branch which means we see a "silly" submit delta panel for trunk.
# To work around that, we don't show the panel for bound branches
# as trunk ought to be bound. We could look for the name
# "trunk" instead but that sounds even more of a hack. :-(
I'd also like to explore the background to this as this means even with this merge proposal, I can only view the changes if I open the master branch and not if I open the bound branch.