l.c.c.t.servers : module documentation

Part of lp.codehosting.codeimport.tests

Server classes that know how to create various kinds of foreign archive.
Function local_path_to_url Return a file:// URL to local_path.
Function run_in_temporary_directory Decorate function to be run in a temporary directory.
Class SubversionServer A controller for an Subversion repository, used for testing.
Class CVSServer A CVS server for testing.
Class GitStoreBackend A backend that looks up repositories under a store directory.
Class TurnipSetSymbolicRefHandler Dulwich protocol handler for setting a symbolic ref.
Class HTTPGitServerThread Thread that runs an HTTP Git server.
Class GitServer No class docstring; 1/6 methods documented
Class BzrServer Undocumented
def local_path_to_url(local_path):
Return a file:// URL to local_path.

This implementation is unusual in that it returns a file://localhost/ URL. This is to work around the valid_vcs_details constraint on CodeImport.

def run_in_temporary_directory(function):
Decorate function to be run in a temporary directory.

Creates a new temporary directory and changes to it for the duration of function.

API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.