Package org.tmatesoft.svn.core.wc2
Class SvnSetChangelist
- java.lang.Object
-
- org.tmatesoft.svn.core.wc2.SvnOperation<java.lang.Void>
-
- org.tmatesoft.svn.core.wc2.SvnSetChangelist
-
- All Implemented Interfaces:
ISvnOperationOptionsProvider
public class SvnSetChangelist extends SvnOperation<java.lang.Void>
Represents set changelist operation. Adds/remove each path intargets(recursing todepthas necessary) tochangelist. If a path is already a member of another changelist, then removes it from the other changelist and adds it tochangelist. (For now, a path cannot belong to two changelists at once.)changelistsis an array ofStringchangelist 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. Ifchangelistsis empty (ornull), 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
- Author:
- TMate Software Ltd.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSvnSetChangelist(SvnOperationFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidensureArgumentsAreValid()java.lang.StringgetChangelistName()Returns the operation's changelist name.protected intgetMaximumTargetsCount()booleanisChangesWorkingCopy()Gets whether the operation changes working copybooleanisRemove()Returns whethertargetsshould be removed from changelist.voidsetChangelistName(java.lang.String changelistName)Sets the operation's changelist name.voidsetRemove(boolean remove)Sets whethertargetsshould 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
-
-
-
-
Constructor Detail
-
SvnSetChangelist
protected SvnSetChangelist(SvnOperationFactory factory)
-
-
Method Detail
-
getChangelistName
public java.lang.String getChangelistName()
Returns the operation's changelist name.- Returns:
- changelist name of the operation
-
setChangelistName
public void setChangelistName(java.lang.String changelistName)
Sets the operation's changelist name.- Parameters:
changelistName- changelist name of the operation
-
isRemove
public boolean isRemove()
Returns whethertargetsshould be removed from changelist.- Returns:
trueiftargetsshould be removed from changelist, iffalseshould be added
-
setRemove
public void setRemove(boolean remove)
Sets whethertargetsshould be removed from changelist.- Parameters:
remove-trueiftargetsshould be removed from changelist, iffalseshould be added
-
ensureArgumentsAreValid
protected void ensureArgumentsAreValid() throws SVNException- Overrides:
ensureArgumentsAreValidin classSvnOperation<java.lang.Void>- Throws:
SVNException
-
getMaximumTargetsCount
protected int getMaximumTargetsCount()
- Overrides:
getMaximumTargetsCountin classSvnOperation<java.lang.Void>
-
isChangesWorkingCopy
public boolean isChangesWorkingCopy()
Gets whether the operation changes working copy- Overrides:
isChangesWorkingCopyin classSvnOperation<java.lang.Void>- Returns:
trueif the operation changes the working copy, otherwisefalse
-
-