Part of lp.codehosting.vfs.branchfs View In Hierarchy
This transport dispatch knows how branches are laid out on the disk in a particular "area". It doesn't know anything about the "hosted" or "mirrored" areas.
This is used directly by our internal services (puller and scanner).
Method | __init__ | Undocumented |
Method | makeTransport | See ITransportDispatch . |
Method | _checkPath | Raise an error if path_on_branch is not valid. |
path_on_branch
is not valid.
This allows us to enforce a certain level of policy about what goes into a branch directory on Launchpad. Specifically, we do not allow arbitrary files at the top-level, we only allow Bazaar control directories, and backups of same.
Raises | PermissionDenied | if path_on_branch is forbidden. |
ITransportDispatch
.Raises | PermissionDenied | If the path on the branch's transport is forbidden because it's not in ALLOWED_DIRECTORIES. |