public interface IRemoteRepository2
Modifier and Type | Interface and Description |
---|---|
static class |
IRemoteRepository2.BadRepositoryException
Given repository does not exist on the remote machine
|
static class |
IRemoteRepository2.NetworkException
Network problems.
|
Modifier and Type | Method and Description |
---|---|
void |
addForCommit(java.lang.String path)
Add the specified file in preparation for commit (e.g.
|
void |
addForDeletion(java.lang.String path)
remove the specified file in preparation for commit (e.g.
|
java.lang.String |
commit(java.lang.String[] onVersions,
java.lang.String comment)
Commit to repository after specified version, or after any version if 'null' specified.
|
java.lang.String |
getFileVersion(java.lang.String file)
Get file version.
|
java.io.File |
getLocalDirectory()
Return directory where this repo is in.
|
java.lang.String[] |
getRecentlyDeletedFiles()
Returns a list of files or directories (empty or not) that have been deleted since the last call to this function,
relative to the repository root that has been checked out.
|
void |
init(RepositoryDefinition repo,
java.io.File dir,
ProjectTeamSettings teamSettings)
Initialize repository provider.
|
void |
switchToVersion(java.lang.String version) |
void init(RepositoryDefinition repo, java.io.File dir, ProjectTeamSettings teamSettings) throws java.lang.Exception
repo
- repository description instancedir
- directory for store filesteamSettings
- team settings object for projectjava.lang.Exception
java.lang.String getFileVersion(java.lang.String file) throws java.lang.Exception
java.lang.Exception
void switchToVersion(java.lang.String version) throws java.lang.Exception
java.lang.Exception
void addForCommit(java.lang.String path) throws java.lang.Exception
git add
, svn add
).path
- The relative path of the item from the root of the repo
(should not start with a /
)java.lang.Exception
void addForDeletion(java.lang.String path) throws java.lang.Exception
git rm
, svn delete
).path
- The relative path of the item from the root of the repo
(should not start with a /
)java.lang.Exception
java.io.File getLocalDirectory()
java.lang.String[] getRecentlyDeletedFiles() throws java.lang.Exception
java.lang.Exception
java.lang.String commit(java.lang.String[] onVersions, java.lang.String comment) throws java.lang.Exception
onVersions
- if version defined, then commit must be just after this version. Otherwise(if remote repository was
updated after rebase), commit shouldn't be processed and should return null. If version is null, then
commit can be after any version, i.e. previous version shouldn't be checked. It can be several
versions defined since glossary will be committed after project_save.tmx.comment
- comment for commitjava.lang.Exception