public interface ICommitConfig
Modifier and Type | Method and Description |
---|---|
void |
addElements(java.util.Collection<MObject> elementsToAdd,
org.modelio.vbasic.progress.IModelioProgress monitor)
Add elements to be committed.
|
void |
addFilesToAdd(java.util.Collection<java.io.File> f)
Add files to add to version.
|
void |
addFilesToAdd(java.util.Collection<java.io.File> f,
java.util.Map<java.lang.String,java.lang.String> cmsProps)
Add files to add to version.
|
void |
addFileToModify(java.io.File f)
Add a file to commit.
|
void |
addFileToRemove(java.io.File toRemove)
Add a file to remove from version.
|
ICommitDetail |
getCommitAnalysis()
Get the list of elements to commit after dependency analysis.
|
java.util.Collection<MObject> |
getElements()
Get the elements to commit.
|
java.util.Collection<java.io.File> |
getFilesToCommit()
Get the addictional files to commit.
|
boolean |
getKeepLocks()
Tells whether locks must be kept or released.
|
java.lang.String |
getMessage()
Get the commit comment
|
boolean |
isBatchMode() |
boolean |
isRecursive()
Get whether the commit must be recursive.
|
void |
setKeepLocks(boolean keepLocks)
Set whether locks must be kept or released.
|
void |
setMessage(java.lang.String comment)
Set the commit comment.
|
void |
setRecursive(boolean isRecursive,
org.modelio.vbasic.progress.IModelioProgress monitor)
Set whether the commit must be recursive.
|
void addElements(java.util.Collection<MObject> elementsToAdd, org.modelio.vbasic.progress.IModelioProgress monitor) throws ReverseFailedException, InvalidCmsStateException
Calling this method reruns dependency analysis and invalidates the
ICommitDetail
returned by getCommitAnalysis()
. getCommitDetails()
must then be called
again to get the new commit details.
elementsToAdd
- The elements to be added to the commit operation.monitor
- the progress monitor to use for reporting progress to the user. ReverseFailedException
- if the code reverse fails on an element.InvalidCmsStateException
- if the model CMS state is not consistentvoid addFileToModify(java.io.File f)
The file will be added to version if not already done.
f
- The file to commit.void addFileToRemove(java.io.File toRemove)
Add a file to remove from version.
toRemove
- the file to remove.void addFilesToAdd(java.util.Collection<java.io.File> f)
Add files to add to version.
f
- the files to addvoid addFilesToAdd(java.util.Collection<java.io.File> f, java.util.Map<java.lang.String,java.lang.String> cmsProps)
Add files to add to version.
f
- the files to addcmsProps
- SVN properties to put on the files. null to apply default properties.ICommitDetail getCommitAnalysis()
java.util.Collection<MObject> getElements()
java.util.Collection<java.io.File> getFilesToCommit()
The returned collection excludes EXML files, it only includes files added by addFile() and deleteFile() .
boolean getKeepLocks()
true
to keep the locks, false
to release them.java.lang.String getMessage()
boolean isBatchMode()
boolean isRecursive()
void setKeepLocks(boolean keepLocks)
keepLocks
- true
to keep the locks, false
to release them.void setMessage(java.lang.String comment)
comment
- the comment to setvoid setRecursive(boolean isRecursive, org.modelio.vbasic.progress.IModelioProgress monitor) throws ReverseFailedException, InvalidCmsStateException
Changing this value reruns dependency analysis and invalidates the
ICommitDetail
returned by getCommitAnalysis()
. getCommitDetails()
must then be called
again to get the new commit details.
isRecursive
- whether the commit must be recursive.monitor
- the progress monitor to use for reporting progress to the user. ReverseFailedException
- if the code reverse fails on an element.InvalidCmsStateException
- if the model CMS state is not consistent