Merge lp:~spiv/bzr/cross-format-stacking-fetch-562380 into lp:bzr
Proposed by
Andrew Bennetts
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Robert Collins | ||||
Approved revision: | no longer in the source branch. | ||||
Merged at revision: | not available | ||||
Proposed branch: | lp:~spiv/bzr/cross-format-stacking-fetch-562380 | ||||
Merge into: | lp:bzr | ||||
Diff against target: |
139 lines (+40/-5) 5 files modified
NEWS (+6/-0) bzrlib/remote.py (+12/-0) bzrlib/tests/per_repository_reference/__init__.py (+17/-0) bzrlib/tests/per_repository_reference/test_default_stacking.py (+0/-1) bzrlib/tests/test_remote.py (+5/-4) |
||||
To merge this branch: | bzr merge lp:~spiv/bzr/cross-format-stacking-fetch-562380 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
bzr-core | Pending | ||
Review via email: mp+23526@code.launchpad.net |
Commit message
Don't allow RemoteRepository to stack on an incompatible-format repository. (#562380)
Description of the change
I think this fixes bug 562380. It certainly fixes a serious bug!
Opening a branch stacked on an incompatible repository via a smart server was not failing as it was supposed to, due to a missing check. Well, if _ensure_real was invoked on the RemoteRepository then it would fail, because the real repository's check would fail it.
The duplication of code between Repository and RemoteRepository is probably partly to blame.
This should probably be backported to the stable releases too.
To post a comment you must log in.
Queued on 2010-04-16 07:20:00. 794099+ 00:00 now submitted to PQM.