|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.tmatesoft.svn.core.wc2.SvnOperation<java.lang.Void>
org.tmatesoft.svn.core.wc2.SvnScheduleForAddition
public class SvnScheduleForAddition
Represents add operation.
Schedules working copy targets for addition to the repository.
depth is SVNDepth.EMPTY, adds just
targets and nothing below it. If SVNDepth.FILES, adds
targets and any file children of targets. If
SVNDepth.IMMEDIATES, adds targets, any file children,
and any immediate subdirectories (but nothing underneath those
subdirectories). If SVNDepth.INFINITY, adds targets
and everything under it fully recursively.
targets' parent must be under revision control already (unless
makeParents is true), but
targets are not.
If force is set, target is a directory, depth is
SVNDepth.INFINITY, then schedules for addition unversioned files
and directories scattered deep within a versioned tree.
If includeIgnored is false,
doesn't add files or directories that match ignore patterns.
If makeParents is true,
recurse up path's directory and look for a versioned directory. If found,
add all intermediate paths between it and the path.
Important: this is a *scheduling* operation. No changes will happen to
the repository until a commit occurs. This scheduling can be removed with
SvnRevert operation.
SvnOperation.run() method throws SVNException in the following cases:
SVNErrorCode.ENTRY_EXISTS error
code - if force is not set and a path is already
under version
exception with
SVNErrorCode.CLIENT_NO_VERSIONED_PARENT error code -
if makeParents is true but no unversioned paths
stepping upper from a path are found
| Constructor Summary | |
|---|---|
protected |
SvnScheduleForAddition(SvnOperationFactory factory)
|
| Method Summary | |
|---|---|
ISvnAddParameters |
getAddParameters()
Returns operation's add parameters, whose controls inconsistent EOL's. |
protected int |
getMaximumTargetsCount()
|
protected void |
initDefaults()
|
boolean |
isAddParents()
Returns whether to recurse up path's directory and look for a versioned directory. |
boolean |
isApplyAutoProperties()
|
boolean |
isChangesWorkingCopy()
Gets whether the operation changes working copy |
boolean |
isForce()
Returns whether to throw exceptions on already-versioned items |
boolean |
isIncludeIgnored()
Return whether to add files or directories that match ignore patterns. |
boolean |
isMkDir()
Returns whether a directory at target's path also should be created |
boolean |
isUseParentWcFormat()
Gets whether or not to use parent working copy format. |
void |
setAddParameters(ISvnAddParameters addParameters)
Sets operation's add parameters, whose controls inconsistent EOL's. |
void |
setAddParents(boolean addParents)
Sets whether to recurse up path's directory and look for a versioned directory. |
void |
setApplyAutoProperties(boolean applyAutoProperties)
|
void |
setForce(boolean force)
Sets whether to throw exceptions on already-versioned items |
void |
setIncludeIgnored(boolean includeIgnored)
Sets whether to add files or directories that match ignore patterns. |
void |
setMkDir(boolean mkDir)
Sets whether a directory at target's path also should be created |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected SvnScheduleForAddition(SvnOperationFactory factory)
| Method Detail |
|---|
protected void initDefaults()
initDefaults in class SvnOperation<java.lang.Void>public boolean isForce()
true if operation does not throw exceptions on already-versioned items,
false if exception should be thrownpublic boolean isIncludeIgnored()
true if ignore patterns should not be applied to paths being added, otherwise falsepublic boolean isApplyAutoProperties()
public boolean isAddParents()
true if operation should climb upper and schedule also all unversioned paths in the waypublic void setForce(boolean force)
force - true if operation does not throw exceptions on already-versioned items,
false if exception should be thrownpublic void setIncludeIgnored(boolean includeIgnored)
includeIgnored - true if ignore patterns should not be applied to paths being added, otherwise falsepublic void setApplyAutoProperties(boolean applyAutoProperties)
public void setAddParents(boolean addParents)
addParents - true if operation should climb upper and schedule also all unversioned paths in the waypublic boolean isMkDir()
target's path also should be created
true, if a directory at target's path also should be createdpublic void setMkDir(boolean mkDir)
target's path also should be created
mkDir - true, if a directory at target's path also should be createdprotected int getMaximumTargetsCount()
getMaximumTargetsCount in class SvnOperation<java.lang.Void>public boolean isUseParentWcFormat()
SvnOperation
isUseParentWcFormat in class SvnOperation<java.lang.Void>true if parent working copy format should be used, otherwise falsepublic ISvnAddParameters getAddParameters()
ISvnAddParameterspublic void setAddParameters(ISvnAddParameters addParameters)
addParameters - add parameters of the operationISvnAddParameterspublic boolean isChangesWorkingCopy()
isChangesWorkingCopy in class SvnOperation<java.lang.Void>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 | ||||||||