Part of lp.code.interfaces.branchnamespace View In Hierarchy
| Attribute | name | The name of the namespace. This is prepended to the branch name. |
| Attribute | target | The branch target for this namespace. |
| Method | createBranch | Create and return an IBranch in this namespace. |
| Method | createBranchWithPrefix | Create and return an IBranch with a name starting with 'prefix'. |
| Method | findUnusedName | Find an unused branch name starting with 'prefix'. |
| Method | getBranches | Return the branches in this namespace. |
| Method | getBranchName | Get the potential unique name for a branch called 'name'. |
| Method | getByName | Find the branch in this namespace called 'name'. |
| Method | isNameUsed | Is 'name' already used in this namespace? |
| Method | moveBranch | Move the branch into this namespace. |
IBranch in this namespace.IBranch with a name starting with 'prefix'.
Use this method to automatically create a branch with an inferred name.
Note that there is no guarantee that the name returned by this method will remain unused for very long. If you wish to create a branch with a given prefix, use createBranchWithPrefix.
| Parameters | eager_load | If True eager load related data for the branches. |
Note that this name is not guaranteed to be unique. Rather, if there
was such a branch with that name, this would be the value of its
IBranch.unique_name property.
| Returns | IBranch if found, 'default' if not. | |
| Parameters | branch | The IBranch to move. |
| mover | The IPerson doing the moving. | |
| new_name | A new name for the branch. | |
| rename_if_necessary | Rename the branch if the branch name exists already in this namespace. | |
| Raises | BranchCreatorNotMemberOfOwnerTeam | if the namespace owner is a team, and 'mover' is not in that team. |
| BranchCreatorNotOwner | if the namespace owner is an individual and 'mover' is not the owner. | |
| BranchCreationForbidden | if 'mover' is not allowed to create a branch in this namespace due to privacy rules. | |
| BranchExists | if a branch with the 'name' exists already in the namespace, and 'rename_if_necessary' is False. |