|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.tmatesoft.svn.core.wc.SVNBasicClient
public class SVNBasicClient
The SVNBasicClient is the base class of all SVN*Client classes that provides a common interface and realization.
All of SVN*Client classes use inherited methods of
SVNBasicClient to access Working Copies metadata, to create a driver
object to access a repository if it's necessary, etc. In addition
SVNBasicClient provides some interface methods - such as those that
allow you to set your event handler
, obtain run-time
configuration options, and others.
Constructor Summary | |
---|---|
protected |
SVNBasicClient(ISVNAuthenticationManager authManager,
ISVNOptions options)
|
protected |
SVNBasicClient(ISVNRepositoryPool pool,
ISVNOptions options)
|
Method Summary | |
---|---|
protected static org.tmatesoft.svn.core.internal.wc16.SVNBasicDelegate |
dontWC17Support()
|
ISVNDebugLog |
getDebugLog()
Returns the debug logger currently in use. |
SvnOperationFactory |
getOperationsFactory()
|
ISVNOptions |
getOptions()
Gets run-time configuration options used by this object. |
ISVNPathListHandler |
getPathListHandler()
|
SVNURL |
getReposRoot(java.io.File path,
SVNURL url,
SVNRevision pegRevision)
Returns the root of the repository. |
SVNURL |
getReposRoot(java.io.File path,
SVNURL url,
SVNRevision pegRevision,
org.tmatesoft.svn.core.internal.wc.admin.SVNAdminArea adminArea,
org.tmatesoft.svn.core.internal.wc.admin.SVNWCAccess access)
Deprecated. |
boolean |
isIgnoreExternals()
Determines if externals definitions are ignored. |
boolean |
isLeaveConflictsUnresolved()
Deprecated. this method should not be used anymore |
static boolean |
isWC17Supported()
|
void |
setDebugLog(ISVNDebugLog log)
Sets a logger to write debug log information to. |
void |
setEventHandler(ISVNEventHandler dispatcher)
Sets an event handler for this object. |
void |
setEventPathPrefix(java.lang.String prefix)
Deprecated. |
void |
setIgnoreExternals(boolean ignore)
Sets externals definitions to be ignored or not during operations. |
void |
setLeaveConflictsUnresolved(boolean leave)
Deprecated. this method should not be used anymore |
void |
setOptions(ISVNOptions options)
Sets run-time global configuration options to this object. |
void |
setPathListHandler(ISVNPathListHandler handler)
Sets a path list handler implementation to this object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected SVNBasicClient(ISVNAuthenticationManager authManager, ISVNOptions options)
protected SVNBasicClient(ISVNRepositoryPool pool, ISVNOptions options)
Method Detail |
---|
public static boolean isWC17Supported()
protected static org.tmatesoft.svn.core.internal.wc16.SVNBasicDelegate dontWC17Support() throws SVNException
SVNException
public ISVNOptions getOptions()
public void setOptions(ISVNOptions options)
options
- the run-time configuration optionspublic void setIgnoreExternals(boolean ignore)
For example, if external definitions are set to be ignored then a checkout operation won't fetch them into a Working Copy.
ignore
- true to ignore externals
definitions, false - not toisIgnoreExternals()
public boolean isIgnoreExternals()
setIgnoreExternals(boolean)
public void setLeaveConflictsUnresolved(boolean leave)
By default when a file receives changes from the repository that are in conflict with local edits, an update operation places two sections for each conflicting snatch into the working file one of which is a user's local edit and the second is the one just received from the repository. Like this:
<<<<<<< .mine user's text ======= received text >>>>>>> .r2
leave
set to true, an
update will still create temporary files but won't place those two
sections into your working file. And this behaviour also concerns merge
operations: any merging to a conflicted file will be prevented. In
addition if there is any registered event handler for an
SVNDiffClient or SVNUpdateClient instance then the handler
will be dispatched an event with the status type set to
SVNStatusType.CONFLICTED_UNRESOLVED
.
The default value is false until a caller explicitly changes it calling this method.
leave
- true to prevent conflicted
files from merging (all merging operations will be skipped),
otherwise falseisLeaveConflictsUnresolved()
,
SVNUpdateClient
,
SVNDiffClient
,
ISVNEventHandler
public boolean isLeaveConflictsUnresolved()
setLeaveConflictsUnresolved(boolean)
public void setEventHandler(ISVNEventHandler dispatcher)
SVNEvent
objects to provide detailed information about
actions and progress state of version control operations performed by
do*() methods of SVN*Client classes.
dispatcher
- an event handlerpublic void setPathListHandler(ISVNPathListHandler handler)
handler
- handler implementationpublic ISVNPathListHandler getPathListHandler()
public void setDebugLog(ISVNDebugLog log)
log
- a debug loggerpublic ISVNDebugLog getDebugLog()
If no debug logger has been specified by the time this call occurs, a
default one (returned by
org.tmatesoft.svn.util.SVNDebugLog.getDefaultLog()
) will be
created and used.
public SVNURL getReposRoot(java.io.File path, SVNURL url, SVNRevision pegRevision, org.tmatesoft.svn.core.internal.wc.admin.SVNAdminArea adminArea, org.tmatesoft.svn.core.internal.wc.admin.SVNWCAccess access) throws SVNException
path
is not null and
pegRevision
is either SVNRevision.WORKING
or
SVNRevision.BASE
, then attempts to fetch the repository root from
the working copy represented by path
. If these conditions
are not met or if the repository root is not recorded in the working
copy, then a repository connection is established and the repository root
is fetched from the session.
When fetching the repository root from the working copy and if
access
is null, a new
working copy access will be created and the working copy will be opened
non-recursively for reading only.
All necessary cleanup (session or|and working copy close) will be
performed automatically as the routine finishes.
path
- working copy pathurl
- repository urlpegRevision
- revision in which the target is validadminArea
- working copy administrative area objectaccess
- working copy access object
SVNException
public SVNURL getReposRoot(java.io.File path, SVNURL url, SVNRevision pegRevision) throws SVNException
path
is not null and
pegRevision
is either SVNRevision.WORKING
or
SVNRevision.BASE
, then attempts to fetch the repository root from
the working copy represented by path
. If these conditions
are not met or if the repository root is not recorded in the working
copy, then a repository connection is established and the repository root
is fetched from the session.
All necessary cleanup (session or|and working copy close) will be
performed automatically as the routine finishes.
path
- working copy pathurl
- repository urlpegRevision
- revision in which the target is valid
SVNException
public void setEventPathPrefix(java.lang.String prefix)
prefix
- a path prefixpublic SvnOperationFactory getOperationsFactory()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |