Class SVNLogClient
Here's a list of the SVNLogClient's methods matched against corresponing commands of the SVN command line client:
| SVNKit | Subversion |
| doLog() | 'svn log' |
| doList() | 'svn list' |
| doAnnotate() | 'svn blame' |
- Since:
- 1.2
- Version:
- 1.3
- Author:
- TMate Software Ltd.
-
Constructor Summary
ConstructorsConstructorDescriptionSVNLogClient(ISVNAuthenticationManager authManager, ISVNOptions options) Constructs and initializes an SVNLogClient object with the specified run-time configuration and authentication drivers.SVNLogClient(ISVNRepositoryPool repositoryPool, ISVNOptions options) Constructs and initializes an SVNLogClient object with the specified run-time configuration and authentication drivers. -
Method Summary
Modifier and TypeMethodDescriptionvoiddoAnnotate(File path, SVNRevision pegRevision, SVNRevision startRevision, SVNRevision endRevision, boolean ignoreMimeType, boolean includeMergedRevisions, ISVNAnnotateHandler handler, String inputEncoding) Invokeshandleron each line-blame item associated with revisionendRevisionofpath, usingstartRevisionas the default source of all blame.voiddoAnnotate(File path, SVNRevision pegRevision, SVNRevision startRevision, SVNRevision endRevision, boolean ignoreMimeType, ISVNAnnotateHandler handler) Obtains annotation information for each file text line from a repository (using a Working Copy path to get a corresponding URL) and passes it to a provided annotation handler.voiddoAnnotate(File path, SVNRevision pegRevision, SVNRevision startRevision, SVNRevision endRevision, ISVNAnnotateHandler handler) Obtains annotation information for each file text line from a repository (using a Working Copy path to get a corresponding URL) and passes it to a provided annotation handler.voiddoAnnotate(SVNURL url, SVNRevision pegRevision, SVNRevision startRevision, SVNRevision endRevision, boolean ignoreMimeType, boolean includeMergedRevisions, ISVNAnnotateHandler handler, String inputEncoding) Invokeshandleron each line-blame item associated with revisionendRevisionofurl, usingstartRevisionas the default source of all blame.voiddoAnnotate(SVNURL url, SVNRevision pegRevision, SVNRevision startRevision, SVNRevision endRevision, boolean ignoreMimeType, ISVNAnnotateHandler handler, String inputEncoding) Obtains annotation information for each file text line from a repository and passes it to a provided annotation handler.voiddoAnnotate(SVNURL url, SVNRevision pegRevision, SVNRevision startRevision, SVNRevision endRevision, ISVNAnnotateHandler handler) Obtains annotation information for each file text line from a repository and passes it to a provided annotation handler.voiddoAnnotate(SVNURL url, SVNRevision pegRevision, SVNRevision startRevision, SVNRevision endRevision, ISVNAnnotateHandler handler, String inputEncoding) Obtains annotation information for each file text line from a repository and passes it to a provided annotation handler.voiddoList(File path, SVNRevision pegRevision, SVNRevision revision, boolean fetchLocks, boolean recursive, ISVNDirEntryHandler handler) Deprecated.voiddoList(File path, SVNRevision pegRevision, SVNRevision revision, boolean recursive, ISVNDirEntryHandler handler) Deprecated.voiddoList(File path, SVNRevision pegRevision, SVNRevision revision, boolean fetchLocks, SVNDepth depth, int entryFields, ISVNDirEntryHandler handler) Reports the directory entry, and possibly children, forpathatrevision.voiddoList(SVNURL url, SVNRevision pegRevision, SVNRevision revision, boolean fetchLocks, boolean recursive, ISVNDirEntryHandler handler) Browses directory entries from a repository and uses the provided dir entry handler to process them.voiddoList(SVNURL url, SVNRevision pegRevision, SVNRevision revision, boolean recursive, ISVNDirEntryHandler handler) Deprecated.voiddoList(SVNURL url, SVNRevision pegRevision, SVNRevision revision, boolean fetchLocks, SVNDepth depth, int entryFields, ISVNDirEntryHandler handler) Reports the directory entry, and possibly children, forurlatrevision.voiddoLog(File[] paths, Collection<SVNRevisionRange> revisionRanges, SVNRevision pegRevision, boolean stopOnCopy, boolean discoverChangedPaths, boolean includeMergedRevisions, long limit, String[] revisionProperties, ISVNLogEntryHandler handler) Invokeshandleron each log message from the givenrevisionRangesin turn, inclusive (but never invokeshandleron a given log message more than once).voiddoLog(File[] paths, SVNRevision startRevision, SVNRevision endRevision, boolean stopOnCopy, boolean discoverChangedPaths, long limit, ISVNLogEntryHandler handler) Gets commit log messages with other revision specific information from a repository (using Working Copy paths to get corresponding URLs) and passes them to a log entry handler for processing.voiddoLog(File[] paths, SVNRevision startRevision, SVNRevision endRevision, SVNRevision pegRevision, boolean stopOnCopy, boolean discoverChangedPaths, boolean includeMergedRevisions, long limit, String[] revisionProperties, ISVNLogEntryHandler handler) Invokeshandleron each log message fromstartRevisiontoendRevisionin turn, inclusive (but never invokeshandleron a given log message more than once).voiddoLog(File[] paths, SVNRevision pegRevision, SVNRevision startRevision, SVNRevision endRevision, boolean stopOnCopy, boolean discoverChangedPaths, long limit, ISVNLogEntryHandler handler) Gets commit log messages with other revision specific information from a repository (using Working Copy paths to get corresponding URLs) and passes them to a log entry handler for processing.voiddoLog(SVNURL url, String[] paths, SVNRevision pegRevision, Collection<SVNRevisionRange> revisionRanges, boolean stopOnCopy, boolean discoverChangedPaths, boolean includeMergedRevisions, long limit, String[] revisionProperties, ISVNLogEntryHandler handler) Invokeshandleron each log message from the givenin turn, inclusive (but never invokeshandleron a given log message more than once).voiddoLog(SVNURL url, String[] paths, SVNRevision pegRevision, SVNRevision startRevision, SVNRevision endRevision, boolean stopOnCopy, boolean discoverChangedPaths, boolean includeMergedRevisions, long limit, String[] revisionProperties, ISVNLogEntryHandler handler) Invokeshandleron each log message fromstartRevisiontoendRevisionin turn, inclusive (but never invokeshandleron a given log message more than once).voiddoLog(SVNURL url, String[] paths, SVNRevision pegRevision, SVNRevision startRevision, SVNRevision endRevision, boolean stopOnCopy, boolean discoverChangedPaths, long limit, ISVNLogEntryHandler handler) Gets commit log messages with other revision specific information from a repository and passes them to a log entry handler for processing.Gets the diff options that are used in annotate operations by this client.protected voidvoidsetDiffOptions(SVNDiffOptions diffOptions) Sets diff options for this client to use in annotate operations.Methods inherited from class org.tmatesoft.svn.core.wc.SVNBasicClient
dontWC17Support, getDebugLog, getOperationsFactory, getOptions, getPathListHandler, getReposRoot, getReposRoot, isIgnoreExternals, isLeaveConflictsUnresolved, isWC17Supported, setDebugLog, setEventHandler, setEventPathPrefix, setIgnoreExternals, setLeaveConflictsUnresolved, setOptions, setPathListHandler
-
Constructor Details
-
SVNLogClient
Constructs and initializes an SVNLogClient object with the specified run-time configuration and authentication drivers.If
optionsis null, then this SVNLogClient will be using a default run-time configuration driver which takes client-side settings from the default SVN's run-time configuration area but is not able to change those settings (read more onISVNOptionsandSVNWCUtil).If
authManageris null, then this SVNLogClient will be using a default authentication and network layers driver (seeSVNWCUtil.createDefaultAuthenticationManager()) which uses server-side settings and auth storage from the default SVN's run-time configuration area (or system properties if that area is not found).- Parameters:
authManager- an authentication and network layers driveroptions- a run-time configuration options driver
-
SVNLogClient
Constructs and initializes an SVNLogClient object with the specified run-time configuration and authentication drivers.If
Ifoptionsis null, then this SVNLogClient will be using a default run-time configuration driver which takes client-side settings from the default SVN's run-time configuration area but is not able to change those settings (read more onISVNOptionsandSVNWCUtil).repositoryPoolis null, thenSVNRepositoryFactorywill be used to createrepository access objects.- Parameters:
repositoryPool- a repository pool objectoptions- a run-time configuration options driver
-
SVNLogClient
-
-
Method Details
-
initDefaults
protected void initDefaults()- Overrides:
initDefaultsin classSVNBasicClient
-
setDiffOptions
Sets diff options for this client to use in annotate operations.- Parameters:
diffOptions- diff options object
-
getDiffOptions
Gets the diff options that are used in annotate operations by this client. Creates a new one if none was used before.- Returns:
- diff options
-
doAnnotate
public void doAnnotate(File path, SVNRevision pegRevision, SVNRevision startRevision, SVNRevision endRevision, ISVNAnnotateHandler handler) throws SVNException Obtains annotation information for each file text line from a repository (using a Working Copy path to get a corresponding URL) and passes it to a provided annotation handler. This method is equivalent to a call todoAnnotate(path, pegRevision, startRevision, endRevision, false, false, handler, null).- Parameters:
path- a WC file item to be annotatedpegRevision- a revision in whichpathis first looked up in the repositorystartRevision- a revision for an operation to start fromendRevision- a revision for an operation to stop athandler- a caller's handler to process annotation information- Throws:
SVNException- ifstartRevision > endRevision- See Also:
-
doAnnotate
public void doAnnotate(File path, SVNRevision pegRevision, SVNRevision startRevision, SVNRevision endRevision, boolean ignoreMimeType, ISVNAnnotateHandler handler) throws SVNException Obtains annotation information for each file text line from a repository (using a Working Copy path to get a corresponding URL) and passes it to a provided annotation handler. This method is equivalent to a call todoAnnotate(path, pegRevision, startRevision, endRevision, ignoreMimeType, false, handler, null).- Parameters:
path- a WC file item to be annotatedpegRevision- a revision in whichpathis first looked up in the repositorystartRevision- a revision for an operation to start fromendRevision- a revision for an operation to stop atignoreMimeType- forces operation to run (all files to be treated as text, no matter what SVNKit has inferred from the mime-type property)handler- a caller's handler to process annotation information- Throws:
SVNException- Since:
- 1.1
- See Also:
-
doAnnotate
public void doAnnotate(File path, SVNRevision pegRevision, SVNRevision startRevision, SVNRevision endRevision, boolean ignoreMimeType, boolean includeMergedRevisions, ISVNAnnotateHandler handler, String inputEncoding) throws SVNException Invokeshandleron each line-blame item associated with revisionendRevisionofpath, usingstartRevisionas the default source of all blame.pegRevisionindicates in which revisionpathis valid. IfpegRevisionisSVNRevision.UNDEFINED, then it defaults toSVNRevision.WORKING. IfstartRevisionis null orinvalid, then it defaults to revision 1. IfendRevisionis null orinvalid, then in defaults toSVNRevision.HEAD. Note: this routine requires repository access.- Parameters:
path- a WC file item to be annotatedpegRevision- a revision in whichpathis first looked up in the repositorystartRevision- a revision for an operation to start fromendRevision- a revision for an operation to stop atignoreMimeType- forces operation to run (all files to be treated as text, no matter what SVNKit has inferred from the mime-type property)includeMergedRevisions- if true, then also returns data based upon revisions which have been merged topathhandler- a caller's handler to process annotation informationinputEncoding- character set to decode input bytes with- Throws:
SVNException- in the following cases:-
exception with
SVNErrorCode.CLIENT_BAD_REVISIONerror code - if bothstartRevisionandendRevisionare either null orinvalidexception withSVNErrorCode.UNSUPPORTED_FEATUREerror code - if either ofstartRevisionorendRevisionisSVNRevision.WORKINGexception withSVNErrorCode.CLIENT_IS_BINARY_FILEerror code - if any of the revisions ofpathhave a binary mime-type, unlessignoreMimeTypeis true, in which case blame information will be generated regardless of the MIME types of the revisions- Since:
- 1.2, SVN 1.5
-
doAnnotate
public void doAnnotate(SVNURL url, SVNRevision pegRevision, SVNRevision startRevision, SVNRevision endRevision, ISVNAnnotateHandler handler) throws SVNException Obtains annotation information for each file text line from a repository and passes it to a provided annotation handler.This method is equivalent to a call to
doAnnotate(url, pegRevision, startRevision, endRevision, false, false, handler, null).- Parameters:
url- a URL of a text file that is to be annotatedpegRevision- a revision in whichpathis first looked up in the repositorystartRevision- a revision for an operation to start fromendRevision- a revision for an operation to stop athandler- a caller's handler to process annotation information- Throws:
SVNException- ifstartRevision > endRevision- See Also:
-
doAnnotate
public void doAnnotate(SVNURL url, SVNRevision pegRevision, SVNRevision startRevision, SVNRevision endRevision, ISVNAnnotateHandler handler, String inputEncoding) throws SVNException Obtains annotation information for each file text line from a repository and passes it to a provided annotation handler.This method is equivalent to a call to
doAnnotate(url, pegRevision, startRevision, endRevision, false, false, handler, inputEncoding).- Parameters:
url- a URL of a text file that is to be annotatedpegRevision- a revision in whichpathis first looked up in the repositorystartRevision- a revision for an operation to start fromendRevision- a revision for an operation to stop athandler- a caller's handler to process annotation informationinputEncoding- a desired character set (encoding) of text lines- Throws:
SVNException- See Also:
-
doAnnotate
public void doAnnotate(SVNURL url, SVNRevision pegRevision, SVNRevision startRevision, SVNRevision endRevision, boolean ignoreMimeType, ISVNAnnotateHandler handler, String inputEncoding) throws SVNException Obtains annotation information for each file text line from a repository and passes it to a provided annotation handler.This method is equivalent to a call to
doAnnotate(url, pegRevision, startRevision, endRevision, ignoreMimeType, false, handler, inputEncoding).- Parameters:
url- a URL of a text file that is to be annotatedpegRevision- a revision in whichpathis first looked up in the repositorystartRevision- a revision for an operation to start fromendRevision- a revision for an operation to stop atignoreMimeType- forces operation to run (all files to be treated as text, no matter what SVNKit has inferred from the mime-type property)handler- a caller's handler to process annotation informationinputEncoding- a desired character set (encoding) of text lines- Throws:
SVNException- Since:
- 1.1
- See Also:
-
doAnnotate
public void doAnnotate(SVNURL url, SVNRevision pegRevision, SVNRevision startRevision, SVNRevision endRevision, boolean ignoreMimeType, boolean includeMergedRevisions, ISVNAnnotateHandler handler, String inputEncoding) throws SVNException Invokeshandleron each line-blame item associated with revisionendRevisionofurl, usingstartRevisionas the default source of all blame.pegRevisionindicates in which revisionurlis valid. IfpegRevisionisSVNRevision.UNDEFINED, then it defaults toSVNRevision.HEAD. IfstartRevisionis null orinvalid, then it defaults to revision 1. IfendRevisionis null orinvalid, then in defaults toSVNRevision.HEAD. Note: this routine requires repository access- Parameters:
url- a URL of a text file that is to be annotatedpegRevision- a revision in whichurlis first looked up in the repositorystartRevision- a revision for an operation to start fromendRevision- a revision for an operation to stop atignoreMimeType- forces operation to run (all files to be treated as text, no matter what SVNKit has inferred from the mime-type property)includeMergedRevisions- if true, then also returns data based upon revisions which have been merged tourlhandler- a caller's handler to process annotation informationinputEncoding- character set to decode input bytes with- Throws:
SVNException- in the following cases:-
exception with
SVNErrorCode.CLIENT_BAD_REVISIONerror code - if bothstartRevisionandendRevisionare either null orinvalidexception withSVNErrorCode.UNSUPPORTED_FEATUREerror code - if either ofstartRevisionorendRevisionisSVNRevision.WORKINGexception withSVNErrorCode.CLIENT_IS_BINARY_FILEerror code - if any of the revisions ofurlhave a binary mime-type, unlessignoreMimeTypeis true, in which case blame information will be generated regardless of the MIME types of the revisions- Since:
- 1.2, SVN 1.5
-
doLog
public void doLog(File[] paths, SVNRevision startRevision, SVNRevision endRevision, boolean stopOnCopy, boolean discoverChangedPaths, long limit, ISVNLogEntryHandler handler) throws SVNException Gets commit log messages with other revision specific information from a repository (using Working Copy paths to get corresponding URLs) and passes them to a log entry handler for processing. Useful for observing the history of affected paths, author, date and log comments information per revision.Calling this method is equivalent to
doLog(paths, startRevision, endRevision, SVNRevision.UNDEFINED, stopOnCopy, discoverChangedPaths, false, limit, null, handler).- Parameters:
paths- an array of Working Copy paths, should not be nullstartRevision- a revision for an operation to start from (including this revision)endRevision- a revision for an operation to stop at (including this revision)stopOnCopy- true not to cross copies while traversing history, otherwise copies history will be also included into processingdiscoverChangedPaths- true to report of all changed paths for every revision being processed (those paths will be available by callingSVNLogEntry.getChangedPaths())limit- a maximum number of log entries to be processedhandler- a caller's log entry handler- Throws:
SVNException- if one of the following is true:- a path is not under version control
- can not obtain a URL of a WC path - there's no such entry in the Working Copy
pathscontain entries that belong to different repositories
- See Also:
-
doLog
public void doLog(File[] paths, SVNRevision startRevision, SVNRevision endRevision, SVNRevision pegRevision, boolean stopOnCopy, boolean discoverChangedPaths, boolean includeMergedRevisions, long limit, String[] revisionProperties, ISVNLogEntryHandler handler) throws SVNException Invokeshandleron each log message fromstartRevisiontoendRevisionin turn, inclusive (but never invokeshandleron a given log message more than once).handleris invoked only on messages whose revisions involved a change to some path inpaths.pegRevisionindicates in which revisionpathsare valid. IfpegRevisionisinvalid, it defaults toSVNRevision.WORKING. Iflimitis non-zero, only invokeshandleron the firstlimitlogs. IfdiscoverChangedPathsis set, then the changed pathsMapargument will be passed to a constructor ofSVNLogEntryon each invocation ofhandler. IfstopOnCopyis set, copy history (if any exists) will not be traversed while harvesting revision logs for each target. IfincludeMergedRevisionsis set, log information for revisions which have been merged topathswill also be returned. Refer toSVNLogEntry.hasChildren()for additional information on how to handle mergeinfo information during a log operation. IfrevisionProperties is null, retrieves all revision properties; else, retrieves only the revprops named in the array (i.e. retrieves none if the array is empty). IfstartRevisionisvalidbutendRevisionis not, thenendRevisiondefaults tostartRevision. If bothstartRevisionandendRevisionare invalid, thenendRevisiondefaults to revision0, andstartRevisiondefaults either topegRevisionin case the latter one is valid, or toSVNRevision.BASE, if it is not. Important: to avoid an exception with theSVNErrorCode.FS_NO_SUCH_REVISIONerror code when invoked against an empty repository (i.e. one not containing a revision 1), callers should specify the rangeSVNRevision.HEAD:0. If the caller has provided a non-nullISVNEventHandler, it will be called with theSVNEventAction.SKIPevent action on any unversioned paths. Note: this routine requires repository access.- Parameters:
paths- an array of Working Copy paths, for which log messages are desiredstartRevision- a revision for an operation to start from (including this revision)endRevision- a revision for an operation to stop at (including this revision)pegRevision- a revision in whichpathsare first looked up in the repositorystopOnCopy- true not to cross copies while traversing history, otherwise copies history will be also included into processingdiscoverChangedPaths- true to report of all changed paths for every revision being processed (those paths will be available by callingSVNLogEntry.getChangedPaths())includeMergedRevisions- if true, merged revisions will be also reportedlimit- a maximum number of log entries to be processedrevisionProperties- names of revision properties to retrievehandler- a caller's log entry handler- Throws:
SVNException- if one of the following is true:- can not obtain a URL of a WC path - there's no such entry in the Working Copy
pathscontain entries that belong to different repositories
- Since:
- 1.2, SVN 1.5
-
doLog
public void doLog(File[] paths, Collection<SVNRevisionRange> revisionRanges, SVNRevision pegRevision, boolean stopOnCopy, boolean discoverChangedPaths, boolean includeMergedRevisions, long limit, String[] revisionProperties, ISVNLogEntryHandler handler) throws SVNException Invokeshandleron each log message from the givenrevisionRangesin turn, inclusive (but never invokeshandleron a given log message more than once).handleris invoked only on messages whose revisions involved a change to some path inpaths.pegRevisionindicates in which revisionpathsare valid. IfpegRevisionisinvalid, it defaults toSVNRevision.WORKING. Iflimitis non-zero, only invokeshandleron the firstlimitlogs. IfdiscoverChangedPathsis set, then the changed pathsMapargument will be passed to a constructor ofSVNLogEntryon each invocation ofhandler. IfstopOnCopyis set, copy history (if any exists) will not be traversed while harvesting revision logs for each target. IfincludeMergedRevisionsis set, log information for revisions which have been merged topathswill also be returned. Refer toSVNLogEntry.hasChildren()for additional information on how to handle mergeinfo information during a log operation. IfrevisionProperties is null, retrieves all revision properties; else, retrieves only the revprops named in the array (i.e. retrieves none if the array is empty). For everySVNRevisionRangeinrevisionRanges: IfstartRevisionisvalidbutendRevisionis not, thenendRevisiondefaults tostartRevision. If bothstartRevisionandendRevisionare invalid, thenendRevisiondefaults to revision0, andstartRevisiondefaults either topegRevisionin case the latter one is valid, or toSVNRevision.BASE, if it is not. Important: to avoid an exception with theSVNErrorCode.FS_NO_SUCH_REVISIONerror code when invoked against an empty repository (i.e. one not containing a revision 1), callers should specify the rangeSVNRevision.HEAD:0. If the caller has provided a non-nullISVNEventHandler, it will be called with theSVNEventAction.SKIPevent action on any unversioned paths. Note: this routine requires repository access.- Parameters:
paths- an array of Working Copy paths, for which log messages are desiredrevisionRanges- collection ofSVNRevisionRangeobjectspegRevision- a revision in whichpathsare first looked up in the repositorystopOnCopy- true not to cross copies while traversing history, otherwise copies history will be also included into processingdiscoverChangedPaths- true to report of all changed paths for every revision being processed (those paths will be available by callingSVNLogEntry.getChangedPaths())includeMergedRevisions- if true, merged revisions will be also reportedlimit- a maximum number of log entries to be processedrevisionProperties- names of revision properties to retrievehandler- a caller's log entry handler- Throws:
SVNException- if one of the following is true:- can not obtain a URL of a WC path - there's no such entry in the Working Copy
pathscontain entries that belong to different repositories
- Since:
- 1.3, SVN 1.6
-
doLog
public void doLog(File[] paths, SVNRevision pegRevision, SVNRevision startRevision, SVNRevision endRevision, boolean stopOnCopy, boolean discoverChangedPaths, long limit, ISVNLogEntryHandler handler) throws SVNException Gets commit log messages with other revision specific information from a repository (using Working Copy paths to get corresponding URLs) and passes them to a log entry handler for processing. Useful for observing the history of affected paths, author, date and log comments information per revision.Calling this method is equivalent to
doLog(paths, startRevision, endRevision, pegRevision, stopOnCopy, discoverChangedPaths, false, limit, null, handler).- Parameters:
paths- an array of Working Copy paths, should not be nullpegRevision- a revision in whichpathis first looked up in the repositorystartRevision- a revision for an operation to start from (including this revision)endRevision- a revision for an operation to stop at (including this revision)stopOnCopy- true not to cross copies while traversing history, otherwise copies history will be also included into processingdiscoverChangedPaths- true to report of all changed paths for every revision being processed (those paths will be available by callingSVNLogEntry.getChangedPaths())limit- a maximum number of log entries to be processedhandler- a caller's log entry handler- Throws:
SVNException- if one of the following is true:- a path is not under version control
- can not obtain a URL of a WC path - there's no such entry in the Working Copy
pathscontain entries that belong to different repositories
- See Also:
-
doLog
public void doLog(SVNURL url, String[] paths, SVNRevision pegRevision, SVNRevision startRevision, SVNRevision endRevision, boolean stopOnCopy, boolean discoverChangedPaths, long limit, ISVNLogEntryHandler handler) throws SVNException Gets commit log messages with other revision specific information from a repository and passes them to a log entry handler for processing. Useful for observing the history of affected paths, author, date and log comments information per revision.Calling this method is equivalent to
doLog(url, paths, pegRevision, startRevision, endRevision, stopOnCopy, discoverChangedPaths, false, limit, null, handler).- Parameters:
url- a target URLpaths- an array of paths relative to the targeturlpegRevision- a revision in whichurlis first looked upstartRevision- a revision for an operation to start from (including this revision)endRevision- a revision for an operation to stop at (including this revision)stopOnCopy- true not to cross copies while traversing history, otherwise copies history will be also included into processingdiscoverChangedPaths- true to report of all changed paths for every revision being processed (those paths will be available by callingSVNLogEntry.getChangedPaths())limit- a maximum number of log entries to be processedhandler- a caller's log entry handler- Throws:
SVNException- Since:
- 1.1, new in Subversion 1.4
- See Also:
-
doLog
public void doLog(SVNURL url, String[] paths, SVNRevision pegRevision, SVNRevision startRevision, SVNRevision endRevision, boolean stopOnCopy, boolean discoverChangedPaths, boolean includeMergedRevisions, long limit, String[] revisionProperties, ISVNLogEntryHandler handler) throws SVNException Invokeshandleron each log message fromstartRevisiontoendRevisionin turn, inclusive (but never invokeshandleron a given log message more than once).handleris invoked only on messages whose revisions involved a change to some path inpaths.pegRevisionindicates in which revisionpathsare valid. IfpegRevisionisinvalid, it defaults toSVNRevision.HEAD. Iflimitis non-zero, only invokeshandleron the firstlimitlogs. IfdiscoverChangedPathsis set, then the changed pathsMapargument will be passed to a constructor ofSVNLogEntryon each invocation ofhandler. IfstopOnCopyis set, copy history (if any exists) will not be traversed while harvesting revision logs for each target. IfincludeMergedRevisionsis set, log information for revisions which have been merged topathswill also be returned. IfrevisionProperties is null, retrieves all revision properties; else, retrieves only the revision properties named in the array (i.e. retrieves none if the array is empty). Important: to avoid an exception with theSVNErrorCode.FS_NO_SUCH_REVISIONerror code when invoked against an empty repository (i.e. one not containing a revision 1), callers should specify the rangeSVNRevision.HEAD:0. Note: this routine requires repository access.- Parameters:
url- repository URLpaths- an array of paths relative tourlpegRevision- a revision in whichpathsare first looked up in the repositorystartRevision- a revision for an operation to start from (including this revision)endRevision- a revision for an operation to stop at (including this revision)stopOnCopy- true not to cross copies while traversing history, otherwise copies history will be also included into processingdiscoverChangedPaths- true to report of all changed paths for every revision being processed (those paths will be available by callingSVNLogEntry.getChangedPaths())includeMergedRevisions- if true, merged revisions will be also reportedlimit- a maximum number of log entries to be processedrevisionProperties- names of revision properties to retrievehandler- a caller's log entry handler- Throws:
SVNException- Since:
- 1.2, SVN 1.5
-
doLog
public void doLog(SVNURL url, String[] paths, SVNRevision pegRevision, Collection<SVNRevisionRange> revisionRanges, boolean stopOnCopy, boolean discoverChangedPaths, boolean includeMergedRevisions, long limit, String[] revisionProperties, ISVNLogEntryHandler handler) throws SVNException Invokeshandleron each log message from the givenin turn, inclusive (but never invokeshandleron a given log message more than once).handleris invoked only on messages whose revisions involved a change to some path inpaths.pegRevisionindicates in which revisionpathsare valid. IfpegRevisionisinvalid, it defaults toSVNRevision.HEAD. Iflimitis non-zero, only invokeshandleron the firstlimitlogs. IfdiscoverChangedPathsis set, then the changed pathsMapargument will be passed to a constructor ofSVNLogEntryon each invocation ofhandler. IfstopOnCopyis set, copy history (if any exists) will not be traversed while harvesting revision logs for each target. IfincludeMergedRevisionsis set, log information for revisions which have been merged topathswill also be returned. IfrevisionProperties is null, retrieves all revision properties; else, retrieves only the revision properties named in the array (i.e. retrieves none if the array is empty). Important: to avoid an exception with theSVNErrorCode.FS_NO_SUCH_REVISIONerror code when invoked against an empty repository (i.e. one not containing a revision 1), callers should specify the rangeSVNRevision.HEAD:0. Note: this routine requires repository access.- Parameters:
url- repository URLpaths- an array of paths relative tourlpegRevision- a revision in whichpathsare first looked up in the repositoryrevisionRanges- collection ofSVNRevisionRangeobjectsstopOnCopy- true not to cross copies while traversing history, otherwise copies history will be also included into processingdiscoverChangedPaths- true to report of all changed paths for every revision being processed (those paths will be available by callingSVNLogEntry.getChangedPaths())includeMergedRevisions- if true, merged revisions will be also reportedlimit- a maximum number of log entries to be processedrevisionProperties- names of revision properties to retrievehandler- a caller's log entry handler- Throws:
SVNException- Since:
- 1.3, SVN 1.6
-
doList
public void doList(File path, SVNRevision pegRevision, SVNRevision revision, boolean fetchLocks, boolean recursive, ISVNDirEntryHandler handler) throws SVNException Deprecated.Browses directory entries from a repository (using Working Copy paths to get corresponding URLs) and uses the provided dir entry handler to process them.On every entry that this method stops it gets some useful entry information which is packed into an
SVNDirEntryobject and passed to thehandler'shandleDirEntry()method.- Parameters:
path- a WC item to get its repository locationpegRevision- a revision in which the item's URL is first looked uprevision- a target revisionfetchLocks- true to fetch locks information from a repositoryrecursive- true to descend recursively (relevant for directories)handler- a caller's directory entry handler (to process info on an entry)- Throws:
SVNException
-
doList
public void doList(File path, SVNRevision pegRevision, SVNRevision revision, boolean fetchLocks, SVNDepth depth, int entryFields, ISVNDirEntryHandler handler) throws SVNException Reports the directory entry, and possibly children, forpathatrevision. The actual node revision selected is determined by the path as it exists inpegRevision. IfpegRevisionisinvalid, then it defaults toSVNRevision.WORKING. Reports directory entries by invokinghandler,settinga relative topathpath to theSVNDirEntryobject. The directory entry forpathis reported using an empty path. Ifpathis a directory, also reports its children. IfdepthisSVNDepth.EMPTY, lists justpathitself. IfdepthisSVNDepth.FILES, listspathand its file entries. IfSVNDepth.IMMEDIATES, lists its immediate file and directory entries. IfSVNDepth.INFINITY, lists file entries and recurses (withSVNDepth.INFINITY) on directory entries.entryFieldscontrols which fields in theSVNDirEntryare filled in. To have them totally filled in useSVNDirEntry.DIRENT_ALL, otherwise simply bitwise OR together the combination of fields you care about. Note: this routine requires repository access.- Parameters:
path- a WC item to get its repository locationpegRevision- a revision in which the item's URL is first looked uprevision- a target revisionfetchLocks- true, includes locks when reporting directory entriesdepth- tree depth to processentryFields- entry fields to fillhandler- a caller's directory entry handler (to process info on an entry)- Throws:
SVNException- in the following cases:-
exception with
SVNErrorCode.FS_NOT_FOUNDerror code - ifpathis non-existent in the repository- Since:
- 1.2, SVN 1.5
-
doList
public void doList(File path, SVNRevision pegRevision, SVNRevision revision, boolean recursive, ISVNDirEntryHandler handler) throws SVNException Deprecated.Browses directory entries from a repository (using Working Copy paths to get corresponding URLs) and uses the provided dir entry handler to process them.On every entry that this method stops it gets some useful entry information which is packed into an
SVNDirEntryobject and passed to thehandler'shandleDirEntry()method.- Parameters:
path- a WC item to get its repository locationpegRevision- a revision in which the item's URL is first looked uprevision- a target revisionrecursive- true to descend recursively (relevant for directories)handler- a caller's directory entry handler (to process info on an entry)- Throws:
SVNException
-
doList
public void doList(SVNURL url, SVNRevision pegRevision, SVNRevision revision, boolean fetchLocks, boolean recursive, ISVNDirEntryHandler handler) throws SVNException Browses directory entries from a repository and uses the provided dir entry handler to process them. This method is especially useful when having no Working Copy.On every entry that this method stops it gets some useful entry information which is packed into an
SVNDirEntryobject and passed to thehandler'shandleDirEntry()method.- Parameters:
url- a repository location to be "listed"pegRevision- a revision in which the item's URL is first looked uprevision- a target revisionfetchLocks- true to fetch locks information from repositoryrecursive- true to descend recursively (relevant for directories)handler- a caller's directory entry handler (to process info on an entry)- Throws:
SVNException- See Also:
-
doList
public void doList(SVNURL url, SVNRevision pegRevision, SVNRevision revision, boolean fetchLocks, SVNDepth depth, int entryFields, ISVNDirEntryHandler handler) throws SVNException Reports the directory entry, and possibly children, forurlatrevision. The actual node revision selected is determined by the path as it exists inpegRevision. IfpegRevisionisinvalid, then it defaults toSVNRevision.HEAD. Reports directory entries by invokinghandler,settinga relative tourlpath to theSVNDirEntryobject. The directory entry forurlis reported using an empty path. Ifurlis a directory, also reports its children. IfdepthisSVNDepth.EMPTY, lists justurlitself. IfdepthisSVNDepth.FILES, listsurland its file entries. IfSVNDepth.IMMEDIATES, lists its immediate file and directory entries. IfSVNDepth.INFINITY, lists file entries and recurses (withSVNDepth.INFINITY) on directory entries.entryFieldscontrols which fields in theSVNDirEntryare filled in. To have them totally filled in useSVNDirEntry.DIRENT_ALL, otherwise simply bitwise OR together the combination of fields you care about. Note: this routine requires repository access.- Parameters:
url- a repository url to be "listed"pegRevision- a revision in which the item's URL is first looked uprevision- a target revisionfetchLocks- true, includes locks when reporting directory entriesdepth- tree depth to processentryFields- entry fields to fillhandler- a caller's directory entry handler (to process info on an entry)- Throws:
SVNException- in the following cases:-
exception with
SVNErrorCode.FS_NOT_FOUNDerror code - ifurlis non-existent in the repository- Since:
- 1.2, SVN 1.5
-
doList
public void doList(SVNURL url, SVNRevision pegRevision, SVNRevision revision, boolean recursive, ISVNDirEntryHandler handler) throws SVNException Deprecated.Browses directory entries from a repository and uses the provided dir entry handler to process them. This method is especially useful when having no Working Copy.On every entry that this method stops it gets some useful entry information which is packed into an
SVNDirEntryobject and passed to thehandler'shandleDirEntry()method.- Parameters:
url- a repository location to be "listed"pegRevision- a revision in which the item's URL is first looked uprevision- a target revisionrecursive- true to descend recursively (relevant for directories)handler- a caller's directory entry handler (to process info on an entry)- Throws:
SVNException
-
doList(File, SVNRevision, SVNRevision, boolean, SVNDepth, int, ISVNDirEntryHandler)instead