Schedules an unversioned item for addition to a repository thus putting it under version control.
To create and add to version control a new directory, set
mkdir
to
true.
Calling this method is equivalent to
doAdd(path, force, mkdir, climbUnversionedParents, recursive, false)
.
@param path a path to be put under versioncontrol (will be added to a repository in next commit)
@param force when
true forces the operationto run on already versioned files or directories without reporting error. When ran recursively, all unversioned files and directories in a tree will be scheduled for addition.
@param mkdir if
true -creates a new directory and schedules it for addition
@param climbUnversionedParents if
true and
path
is located in an unversioned parent directory then the parent will be automatically scheduled for addition, too
@param recursive
true todescend recursively (relevant for directories)
@throws SVNException if one of the following is true:
path
doesn't belong to a Working Copy path
doesn't exist and mkdir
is false path
is the root directory of the Working Copy
@deprecated use {@link #doAdd(File,boolean,boolean,boolean,SVNDepth,boolean,boolean)} instead