l.c.p.w.BranchMirrorerPolicy(BranchOpenPolicy) : class documentation

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

Known subclasses: lp.codehosting.puller.tests.AcceptAnythingBranchMirrorerPolicy, lp.codehosting.puller.tests.test_worker.PrearrangedStackedBranchPolicy, lp.codehosting.puller.worker.ImportedBranchPolicy, lp.codehosting.puller.worker.MirroredBranchPolicy

The policy for what branches to open and how to stack them.
Method createDestinationBranch Create a destination branch for 'source_branch'.
Method getStackedOnURLForDestinationBranch Get the stacked on URL for source_branch.
def createDestinationBranch(self, source_branch, destination_url):
Create a destination branch for 'source_branch'.

Creates a branch at 'destination_url' that is has the same format as 'source_branch'. Any content already at 'destination_url' will be deleted. Generally the new branch will have no revisions, but they will be copied for import branches, because this can be done safely and efficiently with a vfs-level copy (see ImportedBranchPolicy).

Parameterssource_branchThe Bazaar branch that will be mirrored.
destination_urlThe place to make the destination branch. This URL must point to a writable location.
ReturnsThe destination branch.
def getStackedOnURLForDestinationBranch(self, source_branch, destination_url):
Get the stacked on URL for source_branch.

In particular, the URL it should be stacked on when it is mirrored to destination_url.

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