ISVNCanceller, ISVNEventHandlerpublic class SVNLookClient extends SVNAdminBasicClient
| SVNLookClient | Subversion |
| doCat() | 'svnlook cat' |
| doGetAuthor() | 'svnlook author' |
| doGetChanged() | 'svnlook changed' |
| doGetChangedDirectories() | 'svnlook dirs-changed' |
| doGetDate() | 'svnlook date' |
| doGetDiff() | 'svnlook diff' |
| doGetHistory() | 'svnlook history' |
| doGetInfo() | 'svnlook info' |
| doGetLock() | 'svnlook lock' |
| doGetLog() | 'svnlook log' |
| doGetProperties() | 'svnlook proplist' |
| doGetProperty() | 'svnlook propget' |
| doGetRevisionProperties() | 'svnlook proplist --revprop' |
| doGetRevisionProperty() | 'svnlook propget --revprop' |
| doGetTree() | 'svnlook tree' |
| doGetUUID() | 'svnlook uuid' |
| doGetYoungestRevision() | 'svnlook youngest' |
NULLUNKNOWN| Constructor | Description |
|---|---|
SVNLookClient(ISVNAuthenticationManager authManager,
ISVNOptions options) |
Creates a new instance of SVNLookClient
given an authentication manager and global
options keeper.
|
SVNLookClient(ISVNRepositoryPool repositoryPool,
ISVNOptions options) |
Creates a new instance of SVNLookClient
given an
SVNRepository}
drivers provider and global options keeper. |
SVNLookClient(SvnOperationFactory of) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
doCat(java.io.File repositoryRoot,
java.lang.String path,
java.lang.String transactionName,
java.io.OutputStream out) |
Fetches file contents for the specified path in the given
transaction.
|
void |
doCat(java.io.File repositoryRoot,
java.lang.String path,
SVNRevision revision,
java.io.OutputStream out) |
Fetches file contents for the specified revision and path.
|
java.lang.String |
doGetAuthor(java.io.File repositoryRoot,
java.lang.String transactionName) |
Returns author information for the given transaction.
|
java.lang.String |
doGetAuthor(java.io.File repositoryRoot,
SVNRevision revision) |
Returns author information for the given revision.
|
void |
doGetChanged(java.io.File repositoryRoot,
java.lang.String transactionName,
ISVNChangeEntryHandler handler,
boolean includeCopyInfo) |
Traverses changed paths for the given transaction invoking
the passed handler on each changed path.
|
void |
doGetChanged(java.io.File repositoryRoot,
SVNRevision revision,
ISVNChangeEntryHandler handler,
boolean includeCopyInfo) |
Traverses changed paths for the given revision invoking
the passed handler on each changed path.
|
void |
doGetChangedDirectories(java.io.File repositoryRoot,
java.lang.String transactionName,
ISVNChangedDirectoriesHandler handler) |
Passes paths of directories changed in the given transaction to the provided handler.
|
void |
doGetChangedDirectories(java.io.File repositoryRoot,
SVNRevision revision,
ISVNChangedDirectoriesHandler handler) |
Passes paths of directories changed in the given revision to the provided handler.
|
java.util.Date |
doGetDate(java.io.File repositoryRoot,
java.lang.String transactionName) |
Returns datestamp information for the given transaction.
|
java.util.Date |
doGetDate(java.io.File repositoryRoot,
SVNRevision revision) |
Returns datestamp information for the given revision.
|
void |
doGetDiff(java.io.File repositoryRoot,
java.lang.String transactionName,
boolean diffDeleted,
boolean diffAdded,
boolean diffCopyFrom,
java.io.OutputStream os) |
Writes differences of changed files and properties for the
given transaction to the provided output stream.
|
void |
doGetDiff(java.io.File repositoryRoot,
SVNRevision revision,
boolean diffDeleted,
boolean diffAdded,
boolean diffCopyFrom,
java.io.OutputStream os) |
Writes differences of changed files and properties for the
given revision to the provided output stream.
|
long |
doGetFileSize(java.io.File repositoryRoot,
java.lang.String path,
java.lang.String transactionName) |
Returns the size in bytes for the specified path in given transaction
|
long |
doGetFileSize(java.io.File repositoryRoot,
java.lang.String path,
SVNRevision revision) |
Returns the size in bytes for the specified path in given revision
|
void |
doGetHistory(java.io.File repositoryRoot,
java.lang.String path,
SVNRevision revision,
boolean includeIDs,
long limit,
ISVNHistoryHandler handler) |
Passes history information for the specified path and revision to the provided handler.
|
SVNLogEntry |
doGetInfo(java.io.File repositoryRoot,
java.lang.String transactionName) |
Retrieves author, timestamp and log message information from
the repository for the given transaction name.
|
SVNLogEntry |
doGetInfo(java.io.File repositoryRoot,
SVNRevision revision) |
Retrieves author, timestamp and log message information from
the repository for the given revision.
|
SVNLock |
doGetLock(java.io.File repositoryRoot,
java.lang.String path) |
Retrieves lock information for the specified path.
|
java.lang.String |
doGetLog(java.io.File repositoryRoot,
java.lang.String transactionName) |
Returns log information for the given transaction.
|
java.lang.String |
doGetLog(java.io.File repositoryRoot,
SVNRevision revision) |
Returns log information for the given revision.
|
SVNProperties |
doGetProperties(java.io.File repositoryRoot,
java.lang.String path,
java.lang.String transactionName) |
Returns versioned properties for the specified path in the
given transaction.
|
SVNProperties |
doGetProperties(java.io.File repositoryRoot,
java.lang.String path,
SVNRevision revision) |
Returns versioned properties for the specified path in the
given revision.
|
SVNPropertyValue |
doGetProperty(java.io.File repositoryRoot,
java.lang.String propName,
java.lang.String path,
java.lang.String transactionName) |
Returns the value of a versioned property for the specified path in the
given transaction.
|
SVNPropertyValue |
doGetProperty(java.io.File repositoryRoot,
java.lang.String propName,
java.lang.String path,
SVNRevision revision) |
Returns the value of a versioned property for the specified path in the
given revision.
|
SVNProperties |
doGetRevisionProperties(java.io.File repositoryRoot,
java.lang.String transactionName) |
Returns revision properties for the given transaction.
|
SVNProperties |
doGetRevisionProperties(java.io.File repositoryRoot,
SVNRevision revision) |
Returns revision properties in the given revision.
|
SVNPropertyValue |
doGetRevisionProperty(java.io.File repositoryRoot,
java.lang.String propName,
java.lang.String transactionName) |
Returns the value of a revision property for the given transaction.
|
SVNPropertyValue |
doGetRevisionProperty(java.io.File repositoryRoot,
java.lang.String propName,
SVNRevision revision) |
Returns the value of a revision property in the given revision.
|
void |
doGetTree(java.io.File repositoryRoot,
java.lang.String path,
java.lang.String transactionName,
boolean includeIDs,
boolean recursive,
ISVNTreeHandler handler) |
Traverses repository tree starting at the specified path in the
given transaction and invoking the provided handler on each path.
|
void |
doGetTree(java.io.File repositoryRoot,
java.lang.String path,
SVNRevision revision,
boolean includeIDs,
boolean recursive,
ISVNTreeHandler handler) |
Traverses repository tree starting at the specified path in the
given revision and invoking the provided handler on each path.
|
java.lang.String |
doGetUUID(java.io.File repositoryRoot) |
Returns the uuid of the repository.
|
long |
doGetYoungestRevision(java.io.File repositoryRoot) |
Returns the latest revision of the repository.
|
ISVNGNUDiffGenerator |
getDiffGenerator() |
Returns a diff generator to be used in
doGetDiff() methods of this class. |
void |
setDiffGenerator(ISVNGNUDiffGenerator diffGenerator) |
Sets a diff generator to be used in
doGetDiff() methods of this class. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckCancelled, createRepository, dispatchEvent, getDebugLog, getEventDispatcher, getOptions, handleEvent, setDebugLog, setEventHandler, setOptionspublic SVNLookClient(ISVNAuthenticationManager authManager, ISVNOptions options)
authManager - a manager which provides authentication
credentialsoptions - a global config options providerpublic SVNLookClient(ISVNRepositoryPool repositoryPool, ISVNOptions options)
SVNRepository}
drivers provider and global options keeper.repositoryPool - a repository connectors keeperoptions - a global config options providerpublic SVNLookClient(SvnOperationFactory of)
public SVNLogEntry doGetInfo(java.io.File repositoryRoot, SVNRevision revision) throws SVNException
SVNLogEntry
object, that is only the following methods of SVNLogEntry
return valid information:
repositoryRoot - a repository root directory pathrevision - a revision numberSVNException - no repository is found at
repositoryRootpublic SVNLogEntry doGetInfo(java.io.File repositoryRoot, java.lang.String transactionName) throws SVNException
SVNLogEntry
object, that is only the following methods of SVNLogEntry
return valid information:
repositoryRoot - a repository root directory pathtransactionName - a transaction nameSVNException - repositoryRootpublic long doGetYoungestRevision(java.io.File repositoryRoot)
throws SVNException
repositoryRoot - a repository root directory pathSVNException - no repository is found at
repositoryRootpublic java.lang.String doGetUUID(java.io.File repositoryRoot)
throws SVNException
repositoryRoot - a repository root directory pathSVNException - no repository is found at
repositoryRootpublic java.lang.String doGetAuthor(java.io.File repositoryRoot,
SVNRevision revision)
throws SVNException
repositoryRoot - a repository root directory pathrevision - a revision numberSVNException - no repository is found at
repositoryRootpublic java.lang.String doGetAuthor(java.io.File repositoryRoot,
java.lang.String transactionName)
throws SVNException
repositoryRoot - a repository root directory pathtransactionName - a transaction nameSVNException - repositoryRootpublic void doCat(java.io.File repositoryRoot,
java.lang.String path,
SVNRevision revision,
java.io.OutputStream out)
throws SVNException
path must be absolute, that is it must
start with '/'. The provided output stream is
not closed within this method.repositoryRoot - a repository root directory pathpath - an absolute file pathrevision - a revision numberout - an output stream to write contents toSVNException - repositoryRoot
path is not found or
is not a file
public void doCat(java.io.File repositoryRoot,
java.lang.String path,
java.lang.String transactionName,
java.io.OutputStream out)
throws SVNException
path must be absolute, that is it
must start with '/'. The provided output stream
is not closed within this method.repositoryRoot - a repository root directory pathpath - an absolute file pathtransactionName - a transaction nameout - an output stream to write contents toSVNException - repositoryRoot
path is not found or
is not a file
public java.util.Date doGetDate(java.io.File repositoryRoot,
SVNRevision revision)
throws SVNException
repositoryRoot - a repository root directory pathrevision - a revision numberSVNException - no repository is found at
repositoryRootpublic java.util.Date doGetDate(java.io.File repositoryRoot,
java.lang.String transactionName)
throws SVNException
repositoryRoot - a repository root directory pathtransactionName - a transaction nameSVNException - repositoryRoot
public java.lang.String doGetLog(java.io.File repositoryRoot,
SVNRevision revision)
throws SVNException
repositoryRoot - a repository root directory pathrevision - a revision numberSVNException - no repository is found at
repositoryRootpublic java.lang.String doGetLog(java.io.File repositoryRoot,
java.lang.String transactionName)
throws SVNException
repositoryRoot - a repository root directory pathtransactionName - a transaction nameSVNException - repositoryRoot
public void doGetChanged(java.io.File repositoryRoot,
SVNRevision revision,
ISVNChangeEntryHandler handler,
boolean includeCopyInfo)
throws SVNException
repositoryRoot - a repository root directory pathrevision - a revision numberhandler - a changed path handlerincludeCopyInfo - if true copy-from
information is also provided for copied pathsSVNException - no repository is found at
repositoryRootpublic void doGetChanged(java.io.File repositoryRoot,
java.lang.String transactionName,
ISVNChangeEntryHandler handler,
boolean includeCopyInfo)
throws SVNException
repositoryRoot - a repository root directory pathtransactionName - a transaction namehandler - a changed path handlerincludeCopyInfo - if true copy-from
information is also provided for copied pathsSVNException - repositoryRoot
public void doGetChangedDirectories(java.io.File repositoryRoot,
SVNRevision revision,
ISVNChangedDirectoriesHandler handler)
throws SVNException
'/').repositoryRoot - a repository root directory pathrevision - a revision numberhandler - a path handlerSVNException - no repository is found at
repositoryRootpublic void doGetChangedDirectories(java.io.File repositoryRoot,
java.lang.String transactionName,
ISVNChangedDirectoriesHandler handler)
throws SVNException
'/').repositoryRoot - a repository root directory pathtransactionName - a transaction namehandler - a path handlerSVNException - repositoryRoot
public void doGetHistory(java.io.File repositoryRoot,
java.lang.String path,
SVNRevision revision,
boolean includeIDs,
long limit,
ISVNHistoryHandler handler)
throws SVNException
SVNAdminPath objects and include the following
pieces:
SVNAdminPath.getPath() to retrieve it)SVNAdminPath.getRevision() to retrieve it)SVNAdminPath.getNodeID() to retrieve it)get methods of SVNAdminPath are
relevant.
path must be absolute, that is it must start with '/'.
If path is null it defaults to
"/".
repositoryRoot - a repository root directory pathpath - an absolute pathrevision - a revision numberincludeIDs - if true a node
revision id is also included for each pathlimit - maximum number of history entries; if <=0, then no limitation
is applied and all history entries are reportedhandler - a history handlerSVNException - repositoryRoot
path is not found
public SVNLock doGetLock(java.io.File repositoryRoot, java.lang.String path) throws SVNException
path must be absolute, that is it must start with '/'.repositoryRoot - a repository root directory pathpath - an absolute pathSVNException - repositoryRoot
path is not found
public void doGetTree(java.io.File repositoryRoot,
java.lang.String path,
SVNRevision revision,
boolean includeIDs,
boolean recursive,
ISVNTreeHandler handler)
throws SVNException
SVNAdminPath objects and
include the following pieces:
SVNAdminPath.getPath() to retrieve it)0 at path
(use SVNAdminPath.getTreeDepth() to retrieve it)SVNAdminPath.getNodeID() to retrieve it)SVNAdminPath.isDir() to retrieve it)get methods of SVNAdminPath are
relevant.
path must be absolute, that is it must start with '/'.
If path is null it defaults to
"/".
repositoryRoot - a repository root directory pathpath - an absolute pathrevision - a revision numberincludeIDs - if true a node
revision id is also included for each pathrecursive - whether to descend recursively or operate on a single directory onlyhandler - a tree handlerSVNException - repositoryRoot
path is not found
public void doGetTree(java.io.File repositoryRoot,
java.lang.String path,
java.lang.String transactionName,
boolean includeIDs,
boolean recursive,
ISVNTreeHandler handler)
throws SVNException
SVNAdminPath objects and
include the following pieces:
SVNAdminPath.getPath() to retrieve it)0 at path
(use SVNAdminPath.getTreeDepth() to retrieve it)SVNAdminPath.getNodeID() to retrieve it)SVNAdminPath.isDir() to retrieve it)get methods of SVNAdminPath are
relevant.
path must be absolute, that is it must start with '/'.
If path is null it defaults to
"/".
repositoryRoot - a repository root directory pathpath - an absolute pathtransactionName - a transaction nameincludeIDs - if true a node
revision id is also included for each pathrecursive - whether to descend recursively or operate on a single directory onlyhandler - a tree handlerSVNException - repositoryRoot
path is not found
public void doGetDiff(java.io.File repositoryRoot,
SVNRevision revision,
boolean diffDeleted,
boolean diffAdded,
boolean diffCopyFrom,
java.io.OutputStream os)
throws SVNException
was provided to
this client a default GNU-style diff generator is used (which
writes differences just like the 'svnlook diff' command).
The provided output stream is not closed within this method.
repositoryRoot - a repository root directory pathrevision - a revision numberdiffDeleted - if true
differences for deleted files are included,
otherwise notdiffAdded - if true
differences for added files are included,
otherwise notdiffCopyFrom - if true
writes differences against the copy source
(if any), otherwise notos - an output stream to write differences toSVNException - no repository is found at
repositoryRootpublic void doGetDiff(java.io.File repositoryRoot,
java.lang.String transactionName,
boolean diffDeleted,
boolean diffAdded,
boolean diffCopyFrom,
java.io.OutputStream os)
throws SVNException
was provided to
this client a default GNU-style diff generator is used (which
writes differences just like the 'svnlook diff' command).repositoryRoot - a repository root directory pathtransactionName - a transaction namediffDeleted - if true
differences for deleted files are included,
otherwise notdiffAdded - if true
differences for added files are included,
otherwise notdiffCopyFrom - if true
writes differences against the copy source
(if any), otherwise notos - an output stream to write differences toSVNException - repositoryRoot
public SVNPropertyValue doGetProperty(java.io.File repositoryRoot, java.lang.String propName, java.lang.String path, SVNRevision revision) throws SVNException
path must be absolute, that is it must start with '/'.
repositoryRoot - a repository root directory pathpropName - a property namepath - an absolute pathrevision - a revision numberSVNException - repositoryRoot
path is not found
public SVNProperties doGetProperties(java.io.File repositoryRoot, java.lang.String path, SVNRevision revision) throws SVNException
path must be absolute, that is it must start with '/'.
repositoryRoot - a repository root directory pathpath - an absolute pathrevision - a revision numberSVNException - repositoryRoot
path is not found
public SVNPropertyValue doGetProperty(java.io.File repositoryRoot, java.lang.String propName, java.lang.String path, java.lang.String transactionName) throws SVNException
path must be absolute, that is it must start with '/'.
repositoryRoot - a repository root directory pathpropName - a property namepath - an absolute pathtransactionName - a transaction nameSVNException - repositoryRoot
path is not found
public SVNProperties doGetProperties(java.io.File repositoryRoot, java.lang.String path, java.lang.String transactionName) throws SVNException
path must be absolute, that is it must start with '/'.
repositoryRoot - a repository root directory pathpath - an absolute pathtransactionName - a transaction nameSVNException - repositoryRoot
path is not found
public SVNPropertyValue doGetRevisionProperty(java.io.File repositoryRoot, java.lang.String propName, SVNRevision revision) throws SVNException
repositoryRoot - a repository root directory pathpropName - a property namerevision - a revision numberSVNException - no repository is found at
repositoryRootpublic SVNProperties doGetRevisionProperties(java.io.File repositoryRoot, SVNRevision revision) throws SVNException
repositoryRoot - a repository root directory pathrevision - a revision numberSVNException - no repository is found at
repositoryRootpublic SVNPropertyValue doGetRevisionProperty(java.io.File repositoryRoot, java.lang.String propName, java.lang.String transactionName) throws SVNException
repositoryRoot - a repository root directory pathpropName - a property nametransactionName - a transaction nameSVNException - repositoryRoot
public SVNProperties doGetRevisionProperties(java.io.File repositoryRoot, java.lang.String transactionName) throws SVNException
repositoryRoot - a repository root directory pathtransactionName - a transaction nameSVNException - repositoryRoot
public long doGetFileSize(java.io.File repositoryRoot,
java.lang.String path,
java.lang.String transactionName)
throws SVNException
repositoryRoot - a repository root directory pathpath - a path to the file inside the repositorytransactionName - a transaction nameSVNException - repositoryRoot
public long doGetFileSize(java.io.File repositoryRoot,
java.lang.String path,
SVNRevision revision)
throws SVNException
repositoryRoot - a repository root directory pathpath - a path to the file inside the repositoryrevision - a revisionSVNException - no repository is found at
repositoryRootpublic void setDiffGenerator(ISVNGNUDiffGenerator diffGenerator)
doGetDiff() methods of this class.diffGenerator - getDiffGenerator()public ISVNGNUDiffGenerator getDiffGenerator()
doGetDiff() methods of this class.
If no generator was provided by a caller, SVNLookClient uses a default one
that prints differences in a GNU-style.setDiffGenerator(ISVNGNUDiffGenerator)