public interface CommitPatchBuilder
commit(CommitSettings)
method is invoked.Modifier and Type | Method and Description |
---|---|
CommitResult |
commit(CommitSettings commitSettings)
Creates new commit with specified user name and description message
|
void |
createDirectory(java.lang.String path)
Creates an empty directory at the given relative path from a repository root
|
void |
createFile(java.lang.String path,
java.io.InputStream content)
Adds the specified content at the given relative path from a repository root
|
void |
deleteDirectory(java.lang.String path)
Recursively deletes a directory at the given relative path from a repository root
|
void |
deleteFile(java.lang.String path)
Deletes a file at the given relative path from a repository root
|
void |
dispose()
Always called by TeamCity after was performed, or any of the methods above throw an exception
|
void |
renameFile(java.lang.String oldPath,
java.lang.String newPath,
java.io.InputStream content)
Moves a file at the
oldPath relative path from a repository root
to a newPath and writes a new file content |
void createFile(@NotNull java.lang.String path, @NotNull java.io.InputStream content) throws VcsException
path
- file pathcontent
- file contentVcsException
- in case of any problemsvoid createDirectory(@NotNull java.lang.String path) throws VcsException
path
- directory pathVcsException
- in case of any problemsvoid deleteFile(@NotNull java.lang.String path) throws VcsException
path
- file pathVcsException
- in case of any problemsvoid deleteDirectory(@NotNull java.lang.String path) throws VcsException
path
- directory pathVcsException
- in case of any problemsvoid renameFile(@NotNull java.lang.String oldPath, @NotNull java.lang.String newPath, @NotNull java.io.InputStream content) throws VcsException
oldPath
relative path from a repository root
to a newPath and writes a new file contentoldPath
- old file pathnewPath
- new file pathcontent
- file contentVcsException
- in case of any problems@NotNull CommitResult commit(@NotNull CommitSettings commitSettings) throws VcsException
commitSettings
- settings of the commit to makeVcsException
- if commit failedvoid dispose()