Package org.tmatesoft.svn.core.wc2
Class SvnGetStatus
- java.lang.Object
-
- org.tmatesoft.svn.core.wc2.SvnOperation<T>
-
- org.tmatesoft.svn.core.wc2.SvnReceivingOperation<SvnStatus>
-
- org.tmatesoft.svn.core.wc2.SvnGetStatus
-
- All Implemented Interfaces:
ISvnObjectReceiver<SvnStatus>,ISvnOperationOptionsProvider
public class SvnGetStatus extends SvnReceivingOperation<SvnStatus>
Represents status operation.SvnOperation.run()method returns a set ofSvnStatusobjects which describe the status of the working copetarget, and its children (recursing according todepth).. IfreportAllis set, retrieves all entries; otherwise, retrieves only "interesting" entries (local modifications and/or out of date). Ifremoteis set, contacts the repository and augments the status objects with information about out-of-date items (with respect torevision). IfreportExternalsistrue, then recurses into externals definitions (if any exist and depthis eitherSVNDepth.INFINITYorSVNDepth.UNKNOWN) after handling the maintarget. This calls the client notification handler (ISVNEventHandler) with theSVNEventAction.STATUS_EXTERNALaction before handling each externals definition, and withSVNEventAction.STATUS_COMPLETEDafter each.changeListsis a collection ofStringchangelist 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. IfchangeListsis empty (ornull), no changelist filtering occurs. ifremoteistrue, status is calculated against thisrevision- Version:
- 1.7
- Author:
- TMate Software Ltd.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSvnGetStatus(SvnOperationFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidensureArgumentsAreValid()ISvnFileListHookgetFileListHook()Returns client's file list hook.longgetRemoteRevision()Returns the remove revision of thetarget.voidinitDefaults()booleanisChangesWorkingCopy()Gets whether the operation changes working copybooleanisCheckWorkingCopy()booleanisCollectParentExternals()Only relevant for 1.6 working copies, obsolete (not used).booleanisDepthAsSticky()Returns whether depth is sticky.booleanisRemote()Returns whether 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)booleanisReportAll()Returns whether to collect status information on all items including those ones that are in a 'normal' state (unchanged).booleanisReportExternals()Returns whether to report externals.booleanisReportIgnored()Returns whether 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).booleanisUseParentWcFormat()Gets whether or not to use parent working copy format.voidsetCheckWorkingCopy(boolean checkWorkingCopy)voidsetCollectParentExternals(boolean collect)Only relevant for 1.6 working copies, obsolete (not used).voidsetDepthAsSticky(boolean depthAsSticky)voidsetFileListHook(ISvnFileListHook fileListHook)Sets client's file list hook.voidsetRemote(boolean remote)Sets whether 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)voidsetRemoteRevision(long revision)Sets the remove revision of thetarget.voidsetReportAll(boolean reportAll)Sets whether to collect status information on all items including those ones that are in a 'normal' state (unchanged).voidsetReportExternals(boolean reportExternals)Sets whether to report externals.voidsetReportIgnored(boolean reportIgnored)Sets whether 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).-
Methods inherited from class org.tmatesoft.svn.core.wc2.SvnReceivingOperation
first, getReceiver, last, receive, run, setReceiver
-
Methods inherited from class org.tmatesoft.svn.core.wc2.SvnOperation
addTarget, cancel, ensureEnoughTargets, ensureHomohenousTargets, getApplicableChangelists, getAuthenticationManager, getCanceller, getDepth, getEventHandler, getFirstTarget, getMaximumTargetsCount, getMinimumTargetsCount, getOperationalWorkingCopy, getOperationFactory, getOptions, getRepositoryPool, getRevision, getSqliteJournalMode, getTargets, hasFileTargets, hasLocalTargets, hasRemoteTargets, isCancelled, isSleepForTimestamp, needsHomohenousTargets, run, setApplicalbeChangelists, setDepth, setRevision, setSingleTarget, setSleepForTimestamp, setSqliteJournalMode
-
-
-
-
Constructor Detail
-
SvnGetStatus
protected SvnGetStatus(SvnOperationFactory factory)
-
-
Method Detail
-
isRemote
public boolean isRemote()
Returns whether 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)- Returns:
trueif the status should be checked up in repository, otherwisefalse
-
isDepthAsSticky
public boolean isDepthAsSticky()
Returns whether depth is sticky. IfdepthIsStickyis set anddepthis notSVNDepth.UNKNOWN, then in addition to switchingtarget's path , also sets its sticky ambient depth value todepth.- Returns:
trueif the depth is sticky, otherwisefalse
-
isReportIgnored
public boolean isReportIgnored()
Returns whether 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).- Returns:
trueif default and svn:ignore property ignores should be disregarded, otherwisefalse
-
isReportAll
public boolean isReportAll()
Returns whether to collect status information on all items including those ones that are in a 'normal' state (unchanged).- Returns:
trueif all items are reported, iffalseonly items with unchanged state
-
isReportExternals
public boolean isReportExternals()
Returns whether to report externals.- Returns:
trueif externals should be reported, otherwisefalse
-
getFileListHook
public ISvnFileListHook getFileListHook()
Returns client's file list hook. Used for 1.6 only, formerISVNStatusFileProvider.- Returns:
- file list hook
-
setRemote
public void setRemote(boolean remote)
Sets whether 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)- Parameters:
remote-trueif the status should be checked up in repository, otherwisefalse
-
setDepthAsSticky
public void setDepthAsSticky(boolean depthAsSticky)
- Parameters:
depthAsSticky-
-
setReportIgnored
public void setReportIgnored(boolean reportIgnored)
Sets whether 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).- Parameters:
reportIgnored-trueif default and svn:ignore property ignores should be disregarded, otherwisefalse
-
setReportAll
public void setReportAll(boolean reportAll)
Sets whether to collect status information on all items including those ones that are in a 'normal' state (unchanged).- Parameters:
reportAll-trueif all items are reported, iffalseonly items with unchanged state
-
setReportExternals
public void setReportExternals(boolean reportExternals)
Sets whether to report externals.- Parameters:
reportExternals-trueif externals should be reported, otherwisefalse
-
setFileListHook
public void setFileListHook(ISvnFileListHook fileListHook)
Sets client's file list hook. Used for 1.6 only, formerISVNStatusFileProvider.- Parameters:
fileListHook- file list hook
-
ensureArgumentsAreValid
protected void ensureArgumentsAreValid() throws SVNException- Overrides:
ensureArgumentsAreValidin classSvnOperation<SvnStatus>- Throws:
SVNException
-
initDefaults
public void initDefaults()
- Overrides:
initDefaultsin classSvnReceivingOperation<SvnStatus>
-
isCollectParentExternals
public boolean isCollectParentExternals()
Only relevant for 1.6 working copies, obsolete (not used).
-
setCollectParentExternals
public void setCollectParentExternals(boolean collect)
Only relevant for 1.6 working copies, obsolete (not used).
-
setRemoteRevision
public void setRemoteRevision(long revision)
Sets the remove revision of thetarget.- Parameters:
revision- remote revision
-
getRemoteRevision
public long getRemoteRevision()
Returns the remove revision of thetarget. This value can be accessed after operation is executed.- Returns:
- revision remote revision
-
isCheckWorkingCopy
public boolean isCheckWorkingCopy()
-
setCheckWorkingCopy
public void setCheckWorkingCopy(boolean checkWorkingCopy)
-
isUseParentWcFormat
public boolean isUseParentWcFormat()
Description copied from class:SvnOperationGets whether or not to use parent working copy format.- Overrides:
isUseParentWcFormatin classSvnOperation<SvnStatus>- Returns:
trueif parent working copy format should be used, otherwisefalse
-
isChangesWorkingCopy
public boolean isChangesWorkingCopy()
Gets whether the operation changes working copy- Overrides:
isChangesWorkingCopyin classSvnOperation<SvnStatus>- Returns:
trueif the operation changes the working copy, otherwisefalse
-
-