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
Method | createDestinationBranch | Create a destination branch for 'source_branch'. |
Method | getStackedOnURLForDestinationBranch | Get the stacked on URL 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
).
Parameters | source_branch | The Bazaar branch that will be mirrored. |
destination_url | The place to make the destination branch. This URL must point to a writable location. | |
Returns | The destination branch. |
source_branch
.
In particular, the URL it should be stacked on when it is mirrored to
destination_url
.