|
||||||||||
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,
boolean pullAndCollect)
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,
BuildChanges collectedChangesetsReceiver)
Updates sources in sourceDirectory from remote repository to targetRevision. |
Method Detail |
---|
BuildChanges collectChangesSinceLastBuild(@NotNull java.io.File cacheDirectory, @Nullable java.lang.String previousRevision, boolean pullAndCollect) 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 changesetspullAndCollect
- tells whether we want to obtain full changeset list (slow, requires to pull repository contents) or whether
we're interested only in change detection (fast, but doesn't return real changeset list)
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, @Nullable BuildChanges collectedChangesetsReceiver) 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 updatecollectedChangesetsReceiver
- specifies where we want to store collected changesets. Might be null
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 |