Package org.tmatesoft.svn.core.wc2
Class SvnSetChangelist
- All Implemented Interfaces:
ISvnOperationOptionsProvider
Represents set changelist operation.
Adds/remove each path in
targets
(recursing to depth
as
necessary) to changelist
. If a path is already a member of
another changelist, then removes it from the other changelist and adds it
to changelist
. (For now, a path cannot belong to two
changelists at once.)
changelists
is an array of String
changelist
names, used as a restrictive filter on items whose changelist assignments
are adjusted; that is, doesn't tweak the change set of any item unless
it's currently a member of one of those changelists. If
changelists
is empty (or null
),
no changelist filtering occurs.
Note: this metadata is purely a client-side "bookkeeping" convenience,
and is entirely managed by the working copy.
Note: this method does not require repository access.- Version:
- 1.7
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Returns the operation's changelist name.protected int
boolean
Gets whether the operation changes working copyboolean
isRemove()
Returns whethertargets
should be removed from changelist.void
setChangelistName
(String changelistName) Sets the operation's changelist name.void
setRemove
(boolean remove) Sets whethertargets
should be removed from changelist.Methods inherited from class org.tmatesoft.svn.core.wc2.SvnOperation
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
-
Field Details
-
changelistName
-
remove
private boolean remove
-
-
Constructor Details
-
SvnSetChangelist
-
-
Method Details
-
getChangelistName
Returns the operation's changelist name.- Returns:
- changelist name of the operation
-
setChangelistName
Sets the operation's changelist name.- Parameters:
changelistName
- changelist name of the operation
-
isRemove
public boolean isRemove()Returns whethertargets
should be removed from changelist.- Returns:
true
iftargets
should be removed from changelist, iffalse
should be added
-
setRemove
public void setRemove(boolean remove) Sets whethertargets
should be removed from changelist.- Parameters:
remove
-true
iftargets
should be removed from changelist, iffalse
should be added
-
ensureArgumentsAreValid
- Overrides:
ensureArgumentsAreValid
in classSvnOperation<Void>
- Throws:
SVNException
-
getMaximumTargetsCount
protected int getMaximumTargetsCount()- Overrides:
getMaximumTargetsCount
in classSvnOperation<Void>
-
isChangesWorkingCopy
public boolean isChangesWorkingCopy()Gets whether the operation changes working copy- Overrides:
isChangesWorkingCopy
in classSvnOperation<Void>
- Returns:
true
if the operation changes the working copy, otherwisefalse
-