Part of lp.code.interfaces.gitlookup View In Hierarchy
| Method | get | Return the repository with the given id. |
| Method | getByHostingPath | Get information about a given path on the hosting backend. |
| Method | getByUniqueName | Find a repository by its unique name. |
| Method | uriToPath | Return the path for the URI, if the URI is on codehosting. |
| Method | getByUrl | Find a repository by URL. |
| Method | getByPath | Find a repository by its path. |
Return the default value if there is no such repository.
| Returns | An IGitRepository, or None. | |
Find a repository by its unique name.
| Returns | An IGitRepository, or None. | |
This does not ensure that the path is valid.
| Parameters | uri | An instance of lazr.uri.URI |
| Returns | The path if possible; None if the URI is not a valid codehosting URI. | |
Either from the URL on git.launchpad.net (various schemes) or the lp: URL (which relies on client-side configuration).
Find a repository by its path.
| Returns | A tuple of (IGitRepository, extra_path), or (None, _).
'extra_path' may be used by applications that need to traverse a
leading part of a path as a repository, such as external code
browsers. | |