Class SVNStatusClient16
- All Implemented Interfaces:
ISVNCanceller
,ISVNEventHandler
'svn status'
command of the native SVN
command line client.
One of the main advantages of SVNStatusClient lies in that fact that for each processed item the status information is collected and put into an SVNStatus object. Further there are two ways how this object can be passed to a developer (depending on the version of the doStatus() method that was invoked):
- the SVNStatus can be passed to a developer's status handler (that should implement ISVNStatusHandler) in which the developer retrieves status information and decides how to interprete that info;
- another way is that an appropriate doStatus() method just returns that SVNStatus object.
- Since:
- 1.2
- Version:
- 1.3
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.tmatesoft.svn.core.internal.wc16.SVNBasicDelegate
SVNBasicDelegate.RepositoryReference, SVNBasicDelegate.SVNRepositoryLocation
-
Field Summary
FieldsFields inherited from interface org.tmatesoft.svn.core.ISVNCanceller
NULL
Fields inherited from interface org.tmatesoft.svn.core.wc.ISVNEventHandler
UNKNOWN
-
Constructor Summary
ConstructorsConstructorDescriptionSVNStatusClient16
(ISVNAuthenticationManager authManager, ISVNOptions options) Constructs and initializes an SVNStatusClient object with the specified run-time configuration and authentication drivers.SVNStatusClient16
(ISVNRepositoryPool repositoryPool, ISVNOptions options) Constructs and initializes an SVNStatusClient object with the specified run-time configuration and repository pool object. -
Method Summary
Modifier and TypeMethodDescriptionCollects status information on a single Working Copy item.Collects status information on a single Working Copy item.long
doStatus
(File path, boolean recursive, boolean remote, boolean reportAll, boolean includeIgnored, boolean collectParentExternals, ISVNStatusHandler handler) Deprecated.long
doStatus
(File path, boolean recursive, boolean remote, boolean reportAll, boolean includeIgnored, ISVNStatusHandler handler) Deprecated.long
doStatus
(File path, SVNRevision revision, boolean recursive, boolean remote, boolean reportAll, boolean includeIgnored, boolean collectParentExternals, ISVNStatusHandler handler) Deprecated.long
doStatus
(File path, SVNRevision revision, SVNDepth depth, boolean remote, boolean reportAll, boolean includeIgnored, boolean collectParentExternals, ISVNStatusHandler handler, Collection changeLists) Given apath
to a working copy directory (or single file), callshandler
with a set ofSVNStatus
objects which describe the status of thepath
, and its children (recursing according todepth
).void
setFilesProvider
(ISVNStatusFileProvider filesProvider) Methods inherited from class org.tmatesoft.svn.core.internal.wc16.SVNBasicDelegate
checkCancelled, createRepository, createRepository, createRepository, createWCAccess, createWCAccess, deriveLocation, dispatchEvent, dispatchEvent, elideMergeInfo, ensureSessionURL, getDebugLog, getEntryLocation, getEventDispatcher, getLevelsToLockFromDepth, getLocations, getOptions, getPathLastChangeRevision, getPathRelativeToRoot, getPathRelativeToSession, getRepositoryPool, getReposMergeInfo, getReposRoot, getRevisionNumber, getRevisionNumber, getURL, getWCMergeInfo, getWCOrRepositoryMergeInfo, handleEvent, handlePathListItem, isIgnoreExternals, isLeaveConflictsUnresolved, resolveRevisions, setCommitItemAccess, setCommitItemFlags, setCommitItemProperty, setDebugLog, setEventHandler, setEventPathPrefix, setIgnoreExternals, setLeaveConflictsUnresolved, setOptions, setPathListHandler, sleepForTimeStamp
-
Field Details
-
myFilesProvider
-
-
Constructor Details
-
SVNStatusClient16
Constructs and initializes an SVNStatusClient object with the specified run-time configuration and authentication drivers.If
options
is null, then this SVNStatusClient 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 onISVNOptions
andSVNWCUtil
).If
authManager
is null, then this SVNStatusClient 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
-
SVNStatusClient16
Constructs and initializes an SVNStatusClient object with the specified run-time configuration and repository pool object. Ifoptions
is null, then this SVNStatusClient 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 onISVNOptions
andSVNWCUtil
). IfrepositoryPool
is null, thenSVNRepositoryFactory
will be used to createrepository access objects
.- Parameters:
repositoryPool
- a repository pool objectoptions
- a run-time configuration options driver
-
-
Method Details
-
doStatus
public long doStatus(File path, boolean recursive, boolean remote, boolean reportAll, boolean includeIgnored, ISVNStatusHandler handler) throws SVNException Deprecated.Collects status information on Working Copy items and passes it to ahandler
.- Parameters:
path
- local item's pathrecursive
- relevant only ifpath
denotes a directory: true to obtain status info recursively for all child entries, false only for items located immediately in the directory itselfremote
- true to check up the status of the item in the repository, that will tell if the local item is out-of-date (like '-u' option in the SVN client's'svn status'
command), otherwise falsereportAll
- true to collect status information on those items that are in a 'normal' state (unchanged), otherwise falseincludeIgnored
- true to force the operation to collect information on items that were set to be ignored (like '--no-ignore' option in the SVN client's 'svn status' command to disregard default and 'svn:ignore' property ignores), otherwise falsehandler
- a caller's status handler that will be involved in processing status information- Returns:
- the revision number the status information was collected against
- Throws:
SVNException
- See Also:
-
doStatus
public long doStatus(File path, boolean recursive, boolean remote, boolean reportAll, boolean includeIgnored, boolean collectParentExternals, ISVNStatusHandler handler) throws SVNException Deprecated.Collects status information on Working Copy items and passes it to ahandler
.Calling this method is equivalent to
doStatus(path, SVNRevision.HEAD, recursive, remote, reportAll, includeIgnored, collectParentExternals, handler)
.- Parameters:
path
- local item's pathrecursive
- relevant only ifpath
denotes a directory: true to obtain status info recursively for all child entries, false only for items located immediately in the directory itselfremote
- true to check up the status of the item in the repository, that will tell if the local item is out-of-date (like '-u' option in the SVN client's'svn status'
command), otherwise falsereportAll
- true to collect status information on all items including those ones that are in a 'normal' state (unchanged), otherwise falseincludeIgnored
- true to force the operation to collect information on items that were set to be ignored (like '--no-ignore' option in the SVN client's'svn status'
command to disregard default and 'svn:ignore' property ignores), otherwise falsecollectParentExternals
- false to make the operation ignore information on externals definitions (like '--ignore-externals' option in the SVN client's'svn status'
command), otherwise truehandler
- a caller's status handler that will be involved in processing status information- Returns:
- the revision number the status information was collected against
- Throws:
SVNException
-
doStatus
public long doStatus(File path, SVNRevision revision, boolean recursive, boolean remote, boolean reportAll, boolean includeIgnored, boolean collectParentExternals, ISVNStatusHandler handler) throws SVNException Deprecated.Collects status information on Working Copy items and passes it to ahandler
.- Parameters:
path
- local item's pathrevision
- ifremote
is true this revision is used to calculate status againstrecursive
- relevant only ifpath
denotes a directory: true to obtain status info recursively for all child entries, false only for items located immediately in the directory itselfremote
- true to check up the status of the item in the repository, that will tell if the local item is out-of-date (like '-u' option in the SVN client's'svn status'
command), otherwise falsereportAll
- true to collect status information on all items including those ones that are in a 'normal' state (unchanged), otherwise falseincludeIgnored
- true to force the operation to collect information on items that were set to be ignored (like '--no-ignore' option in the SVN client's'svn status'
command to disregard default and 'svn:ignore' property ignores), otherwise falsecollectParentExternals
- false to make the operation ignore information on externals definitions (like '--ignore-externals' option in the SVN client's'svn status'
command), otherwise truehandler
- a caller's status handler that will be involved in processing status information- Returns:
- the revision number the status information was collected against
- Throws:
SVNException
-
doStatus
public long doStatus(File path, SVNRevision revision, SVNDepth depth, boolean remote, boolean reportAll, boolean includeIgnored, boolean collectParentExternals, ISVNStatusHandler handler, Collection changeLists) throws SVNException Given apath
to a working copy directory (or single file), callshandler
with a set ofSVNStatus
objects which describe the status of thepath
, and its children (recursing according todepth
). IfreportAll
is set, retrieves all entries; otherwise, retrieves only "interesting" entries (local modifications and/or out of date). Ifremote
is set, contacts the repository and augments the status objects with information about out-of-dateness (with respect torevision
). IfSVNBasicDelegate.isIgnoreExternals()
returns false, then recurses into externals definitions (if any exist anddepth
is eitherSVNDepth.INFINITY
orSVNDepth.UNKNOWN
) after handling the main target. This calls the client notification handler (ISVNEventHandler
) with theSVNEventAction.STATUS_EXTERNAL
action before handling each externals definition, and withSVNEventAction.STATUS_COMPLETED
after each.changeLists
is a collection ofString
changelist names, used as a restrictive filter on items whose statuses are reported; that is, doesn't report status about any item unless it's a member of one of those changelists. IfchangeLists
is empty (or null), no changelist filtering occurs.- Parameters:
path
- working copy pathrevision
- ifremote
is true, status is calculated against this revisiondepth
- tree depth to processremote
- true to check up the status of the item in the repository, that will tell if the local item is out-of-date (like '-u' option in the SVN client's'svn status'
command), otherwise falsereportAll
- true to collect status information on all items including those ones that are in a 'normal' state (unchanged), otherwise falseincludeIgnored
- true to force the operation to collect information on items that were set to be ignored (like '--no-ignore' option in the SVN client's'svn status'
command to disregard default and 'svn:ignore' property ignores), otherwise falsecollectParentExternals
- obsolete (not used)handler
- a caller's status handler that will be involved in processing status informationchangeLists
- collection with changelist names- Returns:
- returns the actual revision against which the working copy was
compared; the return value is not meaningful (-1) unless
remote
is set - Throws:
SVNException
- Since:
- 1.2, SVN 1.5
-
doStatus
Collects status information on a single Working Copy item.- Parameters:
path
- local item's pathremote
- true to check up the status of the item in the repository, that will tell if the local item is out-of-date (like '-u' option in the SVN client's'svn status'
command), otherwise false- Returns:
- an SVNStatus object representing status information for the item
- Throws:
SVNException
-
doStatus
public SVNStatus doStatus(File path, boolean remote, boolean collectParentExternals) throws SVNException Collects status information on a single Working Copy item.- Parameters:
path
- local item's pathremote
- true to check up the status of the item in the repository, that will tell if the local item is out-of-date (like '-u' option in the SVN client's'svn status'
command), otherwise falsecollectParentExternals
- false to make the operation ignore information on externals definitions (like '--ignore-externals' option in the SVN client's'svn status'
command), otherwise false- Returns:
- an SVNStatus object representing status information for the item
- Throws:
SVNException
-
setFilesProvider
-
doStatus(File,SVNRevision,SVNDepth,boolean,boolean,boolean,boolean,ISVNStatusHandler,Collection)
instead