Part of lp.code.interfaces.gitlookup View In Hierarchy
| Method | traverse | Traverse to the object referred to by a prefix of the 'segments' |
| Method | traverse_path | Traverse to the object referred to by 'path'. |
| Returns | A tuple of::
* an IPerson, or None;
* an IHasGitRepositories;
* an IGitRepository, or None;
* a trailing path segment, or None. | |
| Raises | InvalidNamespace | If the path cannot be parsed as a repository namespace. |
| InvalidProductName | If the project component of the path is not a valid name. | |
| NoSuchGitRepository | If there is a '+git' segment, but the following segment doesn't match an existing Git repository. | |
| NoSuchPerson | If the first segment of the path begins with a '~', but we can't find a person matching the remainder. | |
| NoSuchProduct | If we can't find a project that matches the project component of the path. | |
| NoSuchSourcePackageName | If the source package referred to does not exist. | |
All segments of 'path' must be consumed.
| Returns | A tuple of::
* an IPerson, or None;
* an IHasGitRepositories;
* an IGitRepository, or None. | |
| Raises | InvalidNamespace | If the path cannot be parsed as a repository namespace. |
| InvalidProductName | If the project component of the path is not a valid name. | |
| NoSuchGitRepository | If there is a '+git' segment, but the following segment doesn't match an existing Git repository. | |
| NoSuchPerson | If the first segment of the path begins with a '~', but we can't find a person matching the remainder. | |
| NoSuchProduct | If we can't find a project that matches the project component of the path. | |
| NoSuchSourcePackageName | If the source package referred to does not exist. | |