Skip to main content

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

NameTypeDescription
projectIProjectProject
unitsIEnumerable<IModelUnit>Units to commit
commentstringComments
keepLocksboolWhether to maintain the lock state

If the configuration management system does not support lock management, the keepLocks specification is ignored.
silentboolIf true is specified, the progress bar will not display the progress.
The default value is false.

Return value

  • void

Exceptions

NameException classDescription
Invalid argumentExtensionArgumentExceptionWhen a unit not managed by the project is specified as the unit to be committed
Invalid operationExtensionInvalidOperationExceptionWhen a unit that has been added to or deleted from the project is specified as the unit to be committed
Configuration management repository operation failedExtensionScmExceptionWhen 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().