public class SvnList extends SvnReceivingOperation<SVNDirEntry>
target
at revision
. The actual node revision selected is determined
by the target
's path as it exists in its pegRevision
. If
target
's pegRevision
is invalid
, then
it defaults to SVNRevision.HEAD
.
If depth
is SVNDepth.EMPTY
, lists just
target
itself. If depth
is SVNDepth.FILES
,
lists target
and its file entries. If
SVNDepth.IMMEDIATES
, lists its immediate file and directory
entries. If SVNDepth.INFINITY
, lists file entries and recurses
(with SVNDepth.INFINITY
) on directory entries.
Note: this routine requires repository access.
SvnOperation.run()
method returns an array of SVNDirEntry
objects.
It throws SVNException
in the following cases:
SVNErrorCode.FS_NOT_FOUND
error
code - if url
is non-existent in the repository
Modifier | Constructor and Description |
---|---|
protected |
SvnList(SvnOperationFactory factory) |
Modifier and Type | Method and Description |
---|---|
int |
getEntryFields()
Returns entry fields whose controls which fields in the
SVNDirEntry
are filled in. |
protected void |
initDefaults() |
boolean |
isChangesWorkingCopy()
Gets whether the operation changes working copy
|
boolean |
isFetchLocks()
Returns whether to fetch locks information
|
boolean |
isIgnoreExternals() |
void |
setEntryFields(int entryFields)
Sets entry fields whose controls which fields in the
SVNDirEntry
are filled in. |
void |
setFetchLocks(boolean isFetchLocks)
Sets whether to fetch locks information
|
void |
setIgnoreExternals(boolean ignoreExternals) |
first, getReceiver, last, receive, run, setReceiver
addTarget, cancel, ensureArgumentsAreValid, 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
protected SvnList(SvnOperationFactory factory)
public int getEntryFields()
SVNDirEntry
are filled in. To have them totally filled in use
SVNDirEntry.DIRENT_ALL
, otherwise simply bitwise OR together the
combination of fields you care about.public void setEntryFields(int entryFields)
SVNDirEntry
are filled in. To have them totally filled in use
SVNDirEntry.DIRENT_ALL
, otherwise simply bitwise OR together the
combination of fields you care about.entryFields
- entry fields flagspublic boolean isFetchLocks()
true
if the lock information should be fetched, otherwise false
public void setFetchLocks(boolean isFetchLocks)
isFetchLocks
- true
if the lock information should be fetched, otherwise false
public boolean isChangesWorkingCopy()
isChangesWorkingCopy
in class SvnOperation<SVNDirEntry>
true
if the operation changes the working copy, otherwise false
public boolean isIgnoreExternals()
public void setIgnoreExternals(boolean ignoreExternals)
protected void initDefaults()
initDefaults
in class SvnReceivingOperation<SVNDirEntry>
Copyright © 2004-2012 TMate Software Ltd. All Rights Reserved.