public class SvnRevert extends SvnOperation<java.lang.Void>
targets
,
effectively undoing any local mods. For each path in targets
,
reverts it if it is a file. Else if it is a directory, reverts according
to depth
:
If depth is SVNDepth.EMPTY
, reverts just the
properties on the directory; else if SVNDepth.FILES
, reverts the
properties and any files immediately under the directory; else if
SVNDepth.IMMEDIATES
, reverts all of the preceding plus properties
on immediate subdirectories; else if SVNDepth.INFINITY
, reverts
path and everything under it fully recursively.
changeLists
is a collection of String
changelist names, used as a restrictive filter on items reverted; that
is, doesn't revert any item unless it's a member of one of those
changelists. If changeLists
is empty (or null
),
no changelist filtering occurs.
If an item specified for reversion is not under version control, then
does not fail with an exception, just invokes ISVNEventHandler
using notification code SVNEventAction.SKIP
.Modifier | Constructor and Description |
---|---|
protected |
SvnRevert(SvnOperationFactory factory) |
Modifier and Type | Method and Description |
---|---|
protected void |
ensureArgumentsAreValid() |
protected int |
getMaximumTargetsCount() |
boolean |
isChangesWorkingCopy()
Gets whether the operation changes working copy
|
boolean |
isPreserveModifiedCopies() |
boolean |
isRevertMissingDirectories() |
void |
setPreserveModifiedCopies(boolean preserveModifiedCopies) |
void |
setRevertMissingDirectories(boolean revertMissingDirectories) |
addTarget, cancel, ensureEnoughTargets, ensureHomohenousTargets, getApplicableChangelists, getAuthenticationManager, getCanceller, getDepth, getEventHandler, getFirstTarget, getMinimumTargetsCount, getOperationalWorkingCopy, getOperationFactory, getOptions, getRepositoryPool, getRevision, getSqliteJournalMode, getTargets, hasFileTargets, hasLocalTargets, hasRemoteTargets, initDefaults, isCancelled, isSleepForTimestamp, isUseParentWcFormat, needsHomohenousTargets, run, setApplicalbeChangelists, setDepth, setRevision, setSingleTarget, setSleepForTimestamp, setSqliteJournalMode
protected SvnRevert(SvnOperationFactory factory)
public boolean isRevertMissingDirectories()
public void setRevertMissingDirectories(boolean revertMissingDirectories)
public boolean isPreserveModifiedCopies()
public void setPreserveModifiedCopies(boolean preserveModifiedCopies)
protected void ensureArgumentsAreValid() throws SVNException
ensureArgumentsAreValid
in class SvnOperation<java.lang.Void>
SVNException
protected int getMaximumTargetsCount()
getMaximumTargetsCount
in class SvnOperation<java.lang.Void>
public boolean isChangesWorkingCopy()
isChangesWorkingCopy
in class SvnOperation<java.lang.Void>
true
if the operation changes the working copy, otherwise false
Copyright © 2004-2012 TMate Software Ltd. All Rights Reserved.