|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface HgRepositoryAccess
Method Summary | |
---|---|
void |
archiveSourceCode(java.io.File destinationDirectory,
java.io.File cacheDirectory,
java.lang.String revision,
java.lang.String[] includePattern)
"Archive" (as in svn export) contents of specified revision, applying specified --include pattern |
void |
close()
Cleans up resources, connections, etc... |
BuildRepositoryChanges |
collectChangesSinceLastBuild(java.io.File cacheDirectory,
java.lang.String previousRevision)
Checks whether remote repository has newer revision(s). |
CommitContext |
getFirstCommit(java.io.File cacheDirectory)
|
CommitContext |
getLastCommit(java.io.File cacheDirectory)
|
java.lang.String |
retrieveSourceCode(java.io.File sourceDirectory,
java.io.File cacheDirectory,
java.lang.String targetRevision)
Updates sources in sourceDirectory from remote repository to targetRevision. |
Method Detail |
---|
BuildRepositoryChanges collectChangesSinceLastBuild(@NotNull java.io.File cacheDirectory, @Nullable java.lang.String previousRevision) throws RepositoryException
cacheDirectory
- specifies where to store updated repository. Perfectly it should be the 'cache' directory
holding shared repository for all plans using the same repository URLpreviousRevision
- specifies since which revision we want to collect changesets
RepositoryException
java.lang.String retrieveSourceCode(@NotNull java.io.File sourceDirectory, @Nullable java.io.File cacheDirectory, @Nullable java.lang.String targetRevision) throws RepositoryException
sourceDirectory
- specifies where we want to retrieve sourcescacheDirectory
- specifies where is kept local cache directory, which will hold presumably a more updated repository than sourceDirectory.targetRevision
- specifies since which revision we want to collect changesets
RepositoryException
void archiveSourceCode(@NotNull java.io.File destinationDirectory, @NotNull java.io.File cacheDirectory, @NotNull java.lang.String revision, @Nullable java.lang.String[] includePattern) throws RepositoryException
Differs from {link #retrieveSourceCode} by not cloning the repository first (think "svn checkout" vs. "svn export")
destinationDirectory
- directory to extract files tocacheDirectory
- local repository to extract fromrevision
- revision to extract, tip if nullincludePattern
- include patterns to limit extracted files, all files if null or empty
RepositoryException
- on any errorvoid close()
@Nullable CommitContext getLastCommit(@NotNull java.io.File cacheDirectory) throws RepositoryException
RepositoryException
@Nullable CommitContext getFirstCommit(@NotNull java.io.File cacheDirectory) throws RepositoryException
RepositoryException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |