Part of lp.codehosting.puller.worker View In Hierarchy
Mirroring policy for MIRRORED branches.
In summary:
- follow references,
- only open non-Launchpad http: and https: URLs.
Method | __init__ | Undocumented |
Method | getStackedOnURLForDestinationBranch | Return the stacked on URL for the destination branch. |
Method | should_follow_references | See BranchOpenPolicy.should_follow_references . |
Method | transform_fallback_location | See BranchOpenPolicy.transform_fallback_location . |
Method | check_one_url | See BranchOpenPolicy.check_one_url . |
Inherited from BranchMirrorerPolicy:
Method | createDestinationBranch | Create a destination branch for 'source_branch'. |
Mirrored branches are stacked on the default stacked-on branch of their product, except when we're mirroring the default stacked-on branch itself.
BranchOpenPolicy.should_follow_references
.
We traverse branch references for MIRRORED branches because they provide a useful redirection mechanism and we want to be consistent with the bzr command line.