IScmManager.CommitUnits method
Namespace: NextDesign.Desktop
Description
Commit changes to the specified unit in the specified project and commit them to the configuration management repository.
If there are no changes to the specified unit, nothing is done.
Also, nothing will be done if the specified project is not linked with the configuration management system.
argument
Name | Type | Description |
---|---|---|
project | IProject | Project |
units | IEnumerable<IModelUnit> | Units to commit |
comment | string | Comments |
keepLocks | bool | Do you want to keep the lock state? For configuration management systems that do not support lock management, the keepLocks specification is ignored. |
silent | bool | If true is specified, the progress will not be displayed in the progress bar. Default value is false. |
Return value
- void
Exception
Name | Exception class | Description |
---|---|---|
Invalid argument | ExtensionArgumentException | If a unit outside project management is specified as the unit to be committed |
Invalid operation | ExtensionInvalidOperationException | If the unit to be committed is a unit that has been added to or deleted from the project |
Configuration management repository operation fails | ExtensionScmException | If configuration management repository operation fails |
Annotation
Calling this method will fail if the units being committed include units that have been added to or removed from the project.
Commit the entire project using CommitProject().