Merge lp://staging/~jelmer/bzr/safe-open into lp://staging/bzr
Proposed by
Jelmer Vernooij
Status: | Superseded |
---|---|
Proposed branch: | lp://staging/~jelmer/bzr/safe-open |
Merge into: | lp://staging/bzr |
Prerequisite: | lp://staging/~jelmer/bzr/simplify-server-probing |
Diff against target: |
709 lines (+675/-0) 4 files modified
bzrlib/tests/__init__.py (+1/-0) bzrlib/tests/test_url_policy_open.py (+357/-0) bzrlib/url_policy_open.py (+314/-0) doc/en/release-notes/bzr-2.5.txt (+3/-0) |
To merge this branch: | bzr merge lp://staging/~jelmer/bzr/safe-open |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Martin Packman (community) | Needs Fixing | ||
Review via email: mp+86645@code.staging.launchpad.net |
This proposal supersedes a proposal from 2011-12-22.
This proposal has been superseded by a proposal from 2012-01-19.
Description of the change
Import the safe_open code from launchpad.
This code allows the user to open branches while checking all URLs that are
opened with a policy object. This code is generic, and could be useful for
other users than Launchpad too.
To post a comment you must log in.
Since this is a fairly isolated piece of code I've put the errors in bzrlib.safe_open. bzrlib.errors is certainly also an option, but that module is already fairly large, and it doesn't seem likely other code will use them.