Merge lp:~spiv/bzr/lockcontention-bugs into lp:~bzr/bzr/trunk-old
Status: | Rejected |
---|---|
Rejected by: | Andrew Bennetts |
Proposed branch: | lp:~spiv/bzr/lockcontention-bugs |
Merge into: | lp:~bzr/bzr/trunk-old |
Diff against target: |
192 lines (has conflicts)
Text conflict in bzrlib/smart/request.py Text conflict in bzrlib/tests/test_smart_request.py |
To merge this branch: | bzr merge lp:~spiv/bzr/lockcontention-bugs |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Martin Pool | Approve | ||
Review via email: mp+9228@code.launchpad.net |
Unmerged revisions
- 4561. By Andrew Bennetts
-
Fix serialisation of LockContention via HPSS, improve deserialisation, and use external_url() when possible.
- 4560. By Canonical.com Patch Queue Manager <email address hidden>
-
(jam) Add AbsentContentFa
ctory.get_ bytes_as,
which just raises a better error. - 4559. By Canonical.com Patch Queue Manager <email address hidden>
-
(mbp) workaround for ftp servers without APPE
- 4558. By Canonical.com Patch Queue Manager <email address hidden>
-
(mbp) various UIFactory cleanups including bug 387717
- 4557. By Canonical.com Patch Queue Manager <email address hidden>
-
(robertc) Add interface enforcement for the behaviour of iter_changes
with missing subtrees with explicit paths - the whole subtree
is returned. (Robert Collins) - 4556. By Canonical.com Patch Queue Manager <email address hidden>
-
(jam) Bug #375867,
don't prompt for password if ssh host doesn't support password auth. - 4555. By Canonical.com Patch Queue Manager <email address hidden>
-
(andrew) Fix minor KeyError bug in -Dhpss when logging requests for
unregistered methods. - 4554. By Canonical.com Patch Queue Manager <email address hidden>
-
(jml) Merge in changes from 1.17.
- 4553. By Canonical.com Patch Queue Manager <email address hidden>
-
(robertc) Add checks for inventory deltas which try to ensure that
deltas that are not an exact fit are not applied. (Robert
Collins, bug 397705, bug 367633) - 4552. By Canonical.com Patch Queue Manager <email address hidden>
-
(andrew) Fix NameError when handling redirection loops in
read_mergeable_from_transport .
This patch does a couple of things:
- fixes the generic server-side error translation function so that it can external_ url(), where possible — especially over HPSS this is much nsport, as some url, even a memory:/// one, is probably more
serialise real LockContention errors, which now tend to have their 'lock'
attribute be a LockDir rather than a str.
- simplifies the Branch.lock_write HPSS request implementation so that it uses
that generic translation rather than its own, less informative one.
- improves the client-side translation so that it will optionally use the lock
repr returned over the wire if one is given. (Existing clients will
unconditionally say "(remote lock)" even if the server gives more info.)
- changes LockDir's repr and error message text to use
transport.
more likely to be useful. It will still use .base if external_url raises
InProcessTra
helpful than none at all.
Hmm, perhaps I should extend test_errors to explicitly construct LockContention
with both a LockDir (as happens in process) and with a str (as happens when
constructing one from an HPSS error response)...
The change to use external_url *might* help fix the Launchpad-bazaar bug where
ephemeral and internal lp-1234:/// URLs are shown to users of the codehosting
service, rather than something useful.
-Andrew.