Package org.tmatesoft.svn.core.wc2
Class SvnGetInfo
- java.lang.Object
-
- org.tmatesoft.svn.core.wc2.SvnOperation<T>
-
- org.tmatesoft.svn.core.wc2.SvnReceivingOperation<SvnInfo>
-
- org.tmatesoft.svn.core.wc2.SvnGetInfo
-
- All Implemented Interfaces:
ISvnObjectReceiver<SvnInfo>,ISvnOperationOptionsProvider
public class SvnGetInfo extends SvnReceivingOperation<SvnInfo>
Represents info command.SvnOperation.run()method collects information about item(s) in a repository or working copy, and returns it asSvnInfoobjects. Ifrevisionandtarget'spegRevisionare eithernullorlocal, orinvalid, then information will be pulled solely from the working copy; no network connections will be made. Otherwise, information will be pulled from a repository. The actual node revision selected is determined by thetargetas it exists in itspegRevision. IfpegRevisionisSVNRevision.UNDEFINED, then it defaults toSVNRevision.HEADiftargetis URL, and it defaults toSVNRevision.WORKINGif iftargetworking copy path. Iftargetis a file, collects its info. If it is a directory, then descends according todepth. IfdepthisSVNDepth.EMPTY, fetches info fortargetand nothing else; ifSVNDepth.FILES, fortargetand its immediate file children; ifSVNDepth.IMMEDIATES, for the preceding plus on each immediate subdirectory; ifSVNDepth.INFINITY, then recurses fully, fortargetand everything beneath it.changeListsis a collection ofStringchangelist names, used as a restrictive filter on items whose info is reported; that is, doesn't report info about any item unless it's a member of one of those changelists. IfchangeListsis empty (ornull), no changelist filtering occurs.- Version:
- 1.7
- Author:
- TMate Software Ltd.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSvnGetInfo(SvnOperationFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidensureArgumentsAreValid()voidinitDefaults()booleanisChangesWorkingCopy()Gets whether the operation changes working copybooleanisFetchActualOnly()Gets whether to fetch actual nodes, those are unversioned nodes that describe tree conflicts.booleanisFetchExcluded()Gets whether to fetch excluded items.booleanisIncludeExternals()voidsetFetchActualOnly(boolean fetchActualOnly)Sets whether to fetch actual nodes, those are unversioned nodes that describe tree conflicts.voidsetFetchExcluded(boolean fetchExcluded)Sets whether to fetch excluded items.voidsetIncludeExternals(boolean includeExternals)-
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, isUseParentWcFormat, needsHomohenousTargets, run, setApplicalbeChangelists, setDepth, setRevision, setSingleTarget, setSleepForTimestamp, setSqliteJournalMode
-
-
-
-
Constructor Detail
-
SvnGetInfo
protected SvnGetInfo(SvnOperationFactory factory)
-
-
Method Detail
-
initDefaults
public void initDefaults()
- Overrides:
initDefaultsin classSvnReceivingOperation<SvnInfo>
-
setFetchExcluded
public void setFetchExcluded(boolean fetchExcluded)
Sets whether to fetch excluded items.- Parameters:
fetchExcluded-trueif excluded items should be fetched, otherwisefalse
-
setFetchActualOnly
public void setFetchActualOnly(boolean fetchActualOnly)
Sets whether to fetch actual nodes, those are unversioned nodes that describe tree conflicts.- Parameters:
fetchActualOnly-trueif actual nodes should be , otherwisefalse
-
isFetchExcluded
public boolean isFetchExcluded()
Gets whether to fetch excluded items.- Returns:
trueif excluded items should be fetched, otherwisefalse
-
isFetchActualOnly
public boolean isFetchActualOnly()
Gets whether to fetch actual nodes, those are unversioned nodes that describe tree conflicts.- Returns:
trueif actual nodes should be , otherwisefalse
-
isIncludeExternals
public boolean isIncludeExternals()
-
setIncludeExternals
public void setIncludeExternals(boolean includeExternals)
-
ensureArgumentsAreValid
protected void ensureArgumentsAreValid() throws SVNException- Overrides:
ensureArgumentsAreValidin classSvnOperation<SvnInfo>- Throws:
SVNException
-
isChangesWorkingCopy
public boolean isChangesWorkingCopy()
Gets whether the operation changes working copy- Overrides:
isChangesWorkingCopyin classSvnOperation<SvnInfo>- Returns:
trueif the operation changes the working copy, otherwisefalse
-
-