|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.tmatesoft.svn.core.wc2.SvnOperation<T> org.tmatesoft.svn.core.wc2.SvnReceivingOperation<SvnInfo> org.tmatesoft.svn.core.wc2.SvnGetInfo
public class SvnGetInfo
Represents info command.
SvnOperation.run()
method collects information about item(s) in a repository
or working copy, and returns it as SvnInfo
objects.
revision
and target
's pegRevision
are either null
or local
,
or invalid
, 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 the target
as it exists in
its pegRevision
. If pegRevision
is
SVNRevision.UNDEFINED
, then it defaults to
SVNRevision.HEAD
if target
is URL,
and it defaults to SVNRevision.WORKING
if if target
working copy path.
If target
is a file, collects its info.
If it is a directory, then descends according to depth
.
If depth
isSVNDepth.EMPTY
, fetches info for
target
and nothing else; if SVNDepth.FILES
, for
target
and its immediate file children; if
SVNDepth.IMMEDIATES
, for the preceding plus on each immediate
subdirectory; if SVNDepth.INFINITY
, then recurses fully,
for target
and everything beneath it.
changeLists
is a collection of String
changelist 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. If changeLists
is empty
(or null
), no changelist filtering occurs.
Constructor Summary | |
---|---|
protected |
SvnGetInfo(SvnOperationFactory factory)
|
Method Summary | |
---|---|
protected void |
ensureArgumentsAreValid()
|
void |
initDefaults()
|
boolean |
isChangesWorkingCopy()
Gets whether the operation changes working copy |
boolean |
isFetchActualOnly()
Gets whether to fetch actual nodes, those are unversioned nodes that describe tree conflicts. |
boolean |
isFetchExcluded()
Gets whether to fetch excluded items. |
void |
setFetchActualOnly(boolean fetchActualOnly)
Sets whether to fetch actual nodes, those are unversioned nodes that describe tree conflicts. |
void |
setFetchExcluded(boolean fetchExcluded)
Sets whether to fetch excluded items. |
Methods inherited from class org.tmatesoft.svn.core.wc2.SvnReceivingOperation |
---|
first, getReceiver, last, receive, run, setReceiver |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected SvnGetInfo(SvnOperationFactory factory)
Method Detail |
---|
public void initDefaults()
initDefaults
in class SvnReceivingOperation<SvnInfo>
public void setFetchExcluded(boolean fetchExcluded)
fetchExcluded
- true
if excluded items should be fetched, otherwise false
public void setFetchActualOnly(boolean fetchActualOnly)
fetchActualOnly
- true
if actual nodes should be , otherwise false
public boolean isFetchExcluded()
true
if excluded items should be fetched, otherwise false
public boolean isFetchActualOnly()
true
if actual nodes should be , otherwise false
protected void ensureArgumentsAreValid() throws SVNException
ensureArgumentsAreValid
in class SvnOperation<SvnInfo>
SVNException
public boolean isChangesWorkingCopy()
isChangesWorkingCopy
in class SvnOperation<SvnInfo>
true
if the operation changes the working copy, otherwise false
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |