l.c.c.w.ForeignTreeStore : class documentation

Part of lp.codehosting.codeimport.worker View In Hierarchy

Manages retrieving and storing foreign working trees.

The code import system stores tarballs of CVS and SVN working trees on another system. The tarballs are kept in predictable locations based on the ID of the branch associated to the CodeImport.

The tarballs are all kept in one directory. The filename of a tarball is XXXXXXXX.tar.gz, where 'XXXXXXXX' is the ID of the CodeImport's branch in hex.

Method __init__ Construct a ForeignTreeStore.
Method archive Archive the foreign tree.
Method fetch Fetch the foreign branch for source_details to target_path.
Method fetchFromSource Fetch the foreign tree for source_details to target_path.
Method fetchFromArchive Fetch the foreign tree for source_details from the archive.
Method _getForeignTree Return a foreign tree object for target_path.
def __init__(self, import_data_store):
Construct a ForeignTreeStore.
ParameterstransportA writable transport that points to the base directory where the tarballs are stored.
Unknown Field: ptypetransportbzrlib.transport.Transport.
def _getForeignTree(self, target_path):
Return a foreign tree object for target_path.
def archive(self, foreign_tree):
Archive the foreign tree.
def fetch(self, target_path):
Fetch the foreign branch for source_details to target_path.

If there is no tarball archived for source_details, then try to download (i.e. checkout) the foreign tree from its source repository, generally on a third party server.

def fetchFromSource(self, target_path):
Fetch the foreign tree for source_details to target_path.
def fetchFromArchive(self, target_path):
Fetch the foreign tree for source_details from the archive.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.