IScmManager.CommitUnits Method
Namespace: NextDesign.Desktop
Description
Confirms the changes of the specified unit in the specified project and commits it to the configuration management repository.
Nothing is done if there are no changes to the specified unit.
Nothing is done if the specified project is not integrated with the configuration management system.
Arguments
Name | Type | Description |
---|---|---|
project | IProject | Project |
units | IEnumerable<IModelUnit> | Units to commit |
comment | string | Comments |
keepLocks | bool | Whether to maintain the lock state If the configuration management system does not support lock management, the keepLocks specification is ignored. |
silent | bool | If true is specified, the progress bar will not display the progress. The default value is false. |
Return value
- void
Exceptions
Name | Exception class | Description |
---|---|---|
Invalid argument | ExtensionArgumentException | When a unit not managed by the project is specified as the unit to be committed |
Invalid operation | ExtensionInvalidOperationException | When a unit that has been added to or deleted from the project is specified as the unit to be committed |
Configuration management repository operation failed | ExtensionScmException | When a configuration management repository operation failed |
Annotation
If the units to be committed include units that have been added to or deleted from the project, calling this method will fail.
Commit the entire project using CommitProject().