Part of lp.code.interfaces.hasbranches View In Hierarchy
Known subclasses: lp.registry.interfaces.product.IProductView, lp.registry.interfaces.sourcepackage.ISourcePackagePublic, lp.registry.interfaces.webservice.IDistributionSourcePackage
This interface defines the common methods that for working with them.
Method | newCodeImport | Create a new code import. |
Parameters | registrant | The IPerson to record as the registrant of the import. |
branch_name | The name of the branch or repository to create. | |
rcs_type | The type of the foreign VCS. | |
target_rcs_type | The type of the branch or repository to create (Bazaar or Git). | |
url | The URL to import from if the VCS type uses a single URL (i.e. isn't CVS). | |
cvs_root | The CVSROOT for a CVS import. | |
cvs_module | The module to import for a CVS import. | |
owner | Who should own the created branch or repository, or None for it to be the same as the registrant, or the caller over the API. | |
Returns | An instance of ICodeImport . |