Skip to main content

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

NameTypeDescription
projectIProjectProject
unitsIEnumerable<IModelUnit>Units to commit
commentstringComments
keepLocksboolDo you want to keep the lock state?

For configuration management systems that do not support lock management, the keepLocks specification is ignored.
silentboolIf true is specified, the progress will not be displayed in the progress bar.
Default value is false.

Return value

  • void

Exception

NameException classDescription
Invalid argumentExtensionArgumentExceptionIf a unit outside project management is specified as the unit to be committed
Invalid operationExtensionInvalidOperationExceptionIf the unit to be committed is a unit that has been added to or deleted from the project
Configuration management repository operation failsExtensionScmExceptionIf 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().