|
||||||||||
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... |
BuildChanges |
collectChangesSinceLastBuild(java.io.File cacheDirectory,
java.lang.String previousRevision)
Checks whether remote repository has newer revision(s). |
java.lang.String |
retrieveSourceCode(java.io.File sourceDirectory,
java.io.File cacheDirectory,
java.lang.String previousRevision,
java.lang.String targetRevision)
Updates sources in sourceDirectory from remote repository to targetRevision. |
Method Detail |
---|
BuildChanges 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, @NotNull java.io.File cacheDirectory, @Nullable java.lang.String previousRevision, @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.previousRevision
- specifies since which revision we want to collect changesetstargetRevision
- specifies revision to which we want to update
RepositoryException
void archiveSourceCode(@NotNull java.io.File destinationDirectory, @NotNull java.io.File cacheDirectory, @Nullable 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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |