org.tmatesoft.svn.core.wc
public class SVNChangelistClient extends SVNBasicClient
Here's a list of the SVNChangelistClient's methods matched against corresponing commands of the SVN command line client:
SVNKit | Subversion |
doAddToChangelist() | 'svn changelist CLNAME TARGET' |
doRemoveFromChangelist() | 'svn changelist --remove TARGET' |
SVNBasicClient.RepositoryReference, SVNBasicClient.SVNRepositoryLocation
UNKNOWN
NULL
Constructor and Description |
---|
SVNChangelistClient(ISVNAuthenticationManager authManager,
ISVNOptions options)
Constructs and initializes an SVNChangelistClient object
with the specified run-time configuration and authentication
drivers.
|
SVNChangelistClient(ISVNRepositoryPool repositoryPool,
ISVNOptions options)
Constructs and initializes an SVNChangelistClient object
with the specified run-time configuration and repository pool object.
|
Modifier and Type | Method and Description |
---|---|
void |
addToChangelist(java.io.File[] paths,
SVNDepth depth,
java.lang.String changelist,
java.lang.String[] changelists)
Deprecated.
|
void |
doAddToChangelist(java.io.File[] paths,
SVNDepth depth,
java.lang.String changelist,
java.lang.String[] changelists)
Adds each path in
paths (recursing to depth as necessary) to
changelist . |
void |
doGetChangeListPaths(java.util.Collection changeLists,
java.util.Collection targets,
SVNDepth depth,
ISVNChangelistHandler handler)
Gets paths belonging to the specified changelists discovered under the specified targets.
|
void |
doGetChangeLists(java.io.File path,
java.util.Collection changeLists,
SVNDepth depth,
ISVNChangelistHandler handler)
Gets paths belonging to the specified changelists discovered under the specified path.
|
void |
doRemoveFromChangelist(java.io.File[] paths,
SVNDepth depth,
java.lang.String[] changelists)
Removes each path in
paths (recursing to depth as necessary) from changelists
to which they are currently assigned. |
void |
getChangeListPaths(java.util.Collection changeLists,
java.util.Collection targets,
SVNDepth depth,
ISVNChangelistHandler handler)
Deprecated.
|
void |
getChangeLists(java.io.File path,
java.util.Collection changeLists,
SVNDepth depth,
ISVNChangelistHandler handler)
Deprecated.
|
void |
removeFromChangelist(java.io.File[] paths,
SVNDepth depth,
java.lang.String[] changelists)
Deprecated.
|
checkCancelled, createRepository, createRepository, createRepository, createWCAccess, createWCAccess, deriveLocation, dispatchEvent, dispatchEvent, elideMergeInfo, ensureSessionURL, getDebugLog, getEntryLocation, getEventDispatcher, getLevelsToLockFromDepth, getLocations, getOptions, getPathLastChangeRevision, getPathRelativeToRoot, getPathRelativeToSession, getRepositoryPool, getReposMergeInfo, getReposRoot, getRevisionNumber, getRevisionNumber, getURL, getWCMergeInfo, getWCOrRepositoryMergeInfo, handleEvent, handlePathListItem, isIgnoreExternals, isLeaveConflictsUnresolved, resolveRevisions, setCommitItemAccess, setCommitItemFlags, setCommitItemProperty, setDebugLog, setEventHandler, setEventPathPrefix, setIgnoreExternals, setLeaveConflictsUnresolved, setOptions, setPathListHandler, sleepForTimeStamp
public SVNChangelistClient(ISVNAuthenticationManager authManager, ISVNOptions options)
options
is null,
then this SVNChangelistClient will be using a default run-time
configuration driver which takes client-side settings from the
default SVN's run-time configuration area but is not able to
change those settings (read more on ISVNOptions
and SVNWCUtil
).
If authManager
is null,
then this SVNChangelistClient will be using a default authentication
and network layers driver (see SVNWCUtil.createDefaultAuthenticationManager()
)
which uses server-side settings and auth storage from the
default SVN's run-time configuration area (or system properties
if that area is not found).authManager
- an authentication and network layers driveroptions
- a run-time configuration options driverpublic SVNChangelistClient(ISVNRepositoryPool repositoryPool, ISVNOptions options)
options
is null,
then this SVNChangelistClient will be using a default run-time
configuration driver which takes client-side settings from the
default SVN's run-time configuration area but is not able to
change those settings (read more on ISVNOptions
and SVNWCUtil
).
If repositoryPool
is null,
then SVNRepositoryFactory
will be used to create repository access objects
.repositoryPool
- a repository pool objectoptions
- a run-time configuration options driverpublic void getChangeLists(java.io.File path, java.util.Collection changeLists, SVNDepth depth, ISVNChangelistHandler handler) throws SVNException
doGetChangeLists(File, Collection, SVNDepth, ISVNChangelistHandler)
insteadpath
- changeLists
- depth
- handler
- SVNException
public void getChangeListPaths(java.util.Collection changeLists, java.util.Collection targets, SVNDepth depth, ISVNChangelistHandler handler) throws SVNException
doGetChangeListPaths(Collection, Collection, SVNDepth, ISVNChangelistHandler)
insteadchangeLists
- targets
- depth
- handler
- SVNException
public void addToChangelist(java.io.File[] paths, SVNDepth depth, java.lang.String changelist, java.lang.String[] changelists) throws SVNException
doAddToChangelist(File[], SVNDepth, String, String[])
insteadpaths
- depth
- changelist
- changelists
- SVNException
public void removeFromChangelist(java.io.File[] paths, SVNDepth depth, java.lang.String[] changelists) throws SVNException
doRemoveFromChangelist(File[], SVNDepth, String[])
insteadpaths
- depth
- changelists
- SVNException
public void doAddToChangelist(java.io.File[] paths, SVNDepth depth, java.lang.String changelist, java.lang.String[] changelists) throws SVNException
paths
(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 changeset 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.paths
- working copy paths to add to changelist
depth
- tree depth to processchangelist
- name of the changelist to add new paths tochangelists
- collection of changelist names as a filterSVNException
public void doRemoveFromChangelist(java.io.File[] paths, SVNDepth depth, java.lang.String[] changelists) throws SVNException
paths
(recursing to depth
as necessary) from changelists
to which they are currently assigned.
changelists
is an array of String
changelist names, used as a restrictive
filter on items whose changelist assignments are removed; that is, doesn't remove from a changeset any
item unless it's currently a member of one of those changelists. If changelists
is empty
(or null), all changelist assignments in and under each path in
paths
(to depth
) will be removed.
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.paths
- paths to remove from any changelistsdepth
- tree depth to processchangelists
- collection of changelist names as a filterSVNException
public void doGetChangeListPaths(java.util.Collection changeLists, java.util.Collection targets, SVNDepth depth, ISVNChangelistHandler handler) throws SVNException
doGetChangeLists(File, Collection, SVNDepth, ISVNChangelistHandler)
except for it operates on multiple targets instead of a single one.
Note: this method does not require repository access.changeLists
- collection of changelist namestargets
- working copy paths to operate ondepth
- tree depth to processhandler
- caller's handler to receive path-to-changelist informationSVNException
public void doGetChangeLists(java.io.File path, java.util.Collection changeLists, SVNDepth depth, ISVNChangelistHandler handler) throws SVNException
path
, crawls to depth
to discover every path in or under
path which belongs to one of the changelists in changeLists
(a collection of
String
changelist names).
If changeLists
is null, discovers paths with any changelist.
Calls handler
each time a changelist-having path is discovered.
If there was an event handler provided via SVNBasicClient.setEventHandler(ISVNEventHandler)
, then its
ISVNCanceller.checkCancelled()
will be invoked during the recursive walk.
Note: this method does not require repository access.
path
- target working copy pathchangeLists
- collection of changelist namesdepth
- tree depth to processhandler
- caller's handler to receive path-to-changelist informationSVNException
Copyright © 2004-2011 TMate Software Ltd. All Rights Reserved.