Part of lp.code.interfaces.gitnamespace View In Hierarchy
Attribute | name | The name of the namespace. This is prepended to the repository name. |
Attribute | target | The IHasGitRepositories for this namespace. |
Method | createRepository | Create and return an IGitRepository in this namespace. |
Method | isNameUsed | Is 'name' already used in this namespace? |
Method | findUnusedName | Find an unused repository name starting with 'prefix'. |
Method | moveRepository | Move the repository into this namespace. |
Method | getRepositories | Return the repositories in this namespace. |
Method | getByName | Find the repository in this namespace called 'repository_name'. |
Method | __eq__ | Is this namespace the same as another namespace? |
Method | __ne__ | Is this namespace not the same as another namespace? |
IGitRepository
in this namespace.Note that there is no guarantee that the name returned by this method will remain unused for very long.
Parameters | repository | The IGitRepository to move. |
mover | The IPerson doing the moving. | |
new_name | A new name for the repository. | |
rename_if_necessary | Rename the repository if the repository name already exists in this namespace. | |
Raises | GitRepositoryCreatorNotMemberOfOwnerTeam | if the namespace owner is a team and 'mover' is not in that team. |
GitRepositoryCreatorNotOwner | if the namespace owner is an individual and 'mover' is not the owner. | |
GitRepositoryCreationForbidden | if 'mover' is not allowed to create a repository in this namespace due to privacy rules. | |
GitRepositoryExists | if a repository with the new name already exists in the namespace, and 'rename_if_necessary' is False. |
Returns | IGitRepository if found, otherwise 'default'. |