Part of lp.codehosting
Much of the code in here should be submitted upstream. The rest is code that integrates between Bazaar's infrastructure and Launchpad's infrastructure.
Function | should_log_oops | Return true if exc should trigger an OOPS. |
Function | is_branch_stackable | Return True if the bzr_branch is able to be stacked. |
Function | get_branch_stacked_on_url | Return the stacked-on URL for the branch in this bzrdir. |
Function | add_exception_logging_hook | Call 'hook_function' when bzr logs an exception. |
Function | remove_exception_logging_hook | Cease calling 'hook_function' whenever bzr logs an exception. |
Function | make_oops_logging_exception_hook | Make a hook for logging OOPSes. |
Class | BazaarOopsRequest | An OOPS request specific to bzr. |
Function | make_error_utility | Make an error utility for logging errors from bzr. |
Function | install_oops_handler | Install an OOPS handler for a bzr process. |
Class | HttpAsLocalTransport | A LocalTransport that works using http URLs. |
Class | DenyingServer | Temporarily prevent creation of transports for certain URL schemes. |
Function | get_vfs_format_classes | Return the vfs classes of the branch, repo and bzrdir formats. |
Function | identical_formats | Check if two branches have the same bzrdir, repo, and branch formats. |
Function | get_stacked_on_url | Get the stacked-on URL for 'branch', or None if not stacked. |
Function | get_branch_info | Get information about the branch for branchChanged. |
Function | read_locked | Undocumented |
Function | write_locked | Provide a context in which the branch is write-locked. |
Function | server | Undocumented |
Function | _hooked_log_exception_quietly | Wrapper around trace.log_exception_quietly that calls hooks. |
This method lets you figure out the stacked-on URL of a branch without opening the stacked-on branch. This lets us check for pathologically stacked branches.
Returns | the stacked-on URL for the branch in this bzrdir. | |
Raises | NotBranchError | If there is no Branch. |
NotStacked | If the Branch is not stacked. | |
UnstackableBranchFormat | If the Branch is of an unstackable format. |
Parameters | hook_function | A nullary callable that relies on sys.exc_info() for exception information. |
Parameters | hook_function | A nullary callable that relies on sys.exc_info() for exception information. It will be removed from the exception logging hooks. |
When installed, logs any exception passed to log_exception_quietly
.
Parameters | user_id | The database ID of the user the process is running as. |
'vfs' here means that it will return the underlying format classes of a remote branch.