public final class SvnJavaUtil extends Object
SVNWCClient
. The procedure comments were taken from the tmate.org
example file:
org.tmatesoft.svn.examples.wc.WorkingCopy.javaModifier and Type | Class and Description |
---|---|
static class |
SvnJavaUtil.GenericEventHandler
Generic event handler that collects all events internally and will return them with a call to
SvnJavaUtil.GenericEventHandler.getEvents() |
Modifier and Type | Method and Description |
---|---|
static void |
add(org.tmatesoft.svn.core.wc.SVNClientManager clientManager,
File wcPath,
boolean recursive)
Puts directories and files under version control scheduling them for addition
to a repository.
|
static void |
blame(org.tmatesoft.svn.core.wc.SVNClientManager clientManager,
File file,
org.tmatesoft.svn.core.wc.ISVNAnnotateHandler handler) |
static void |
changelog(org.tmatesoft.svn.core.wc.SVNClientManager clientManager,
org.tmatesoft.svn.core.SVNURL svnUrl,
org.tmatesoft.svn.core.wc.SVNRevision startRevision,
org.tmatesoft.svn.core.wc.SVNRevision endRevision,
boolean stopOnCopy,
boolean reportPaths,
org.tmatesoft.svn.core.ISVNLogEntryHandler handler) |
static long |
checkout(org.tmatesoft.svn.core.wc.SVNUpdateClient updateClient,
org.tmatesoft.svn.core.SVNURL url,
org.tmatesoft.svn.core.wc.SVNRevision revision,
File destPath,
boolean isRecursive)
Checks out a working copy from a repository.
|
static org.tmatesoft.svn.core.SVNCommitInfo |
commit(org.tmatesoft.svn.core.wc.SVNCommitClient clientManager,
File[] paths,
boolean keepLocks,
String commitMessage,
boolean recursive)
Commits changes in a working copy to a repository.
|
static org.tmatesoft.svn.core.SVNCommitInfo |
copy(org.tmatesoft.svn.core.wc.SVNClientManager clientManager,
org.tmatesoft.svn.core.SVNURL srcURL,
org.tmatesoft.svn.core.SVNURL dstURL,
boolean isMove,
String commitMessage,
String revision) |
static void |
delete(org.tmatesoft.svn.core.wc.SVNClientManager clientManager,
List<File> files,
boolean force)
Schedules directories and files for deletion from version control upon the next
commit (locally).
|
static ByteArrayOutputStream |
diff(org.tmatesoft.svn.core.wc.SVNClientManager clientManager,
File baseDir,
org.tmatesoft.svn.core.wc.SVNRevision startRevision,
org.tmatesoft.svn.core.wc.SVNRevision endRevision) |
static long |
export(org.tmatesoft.svn.core.wc.SVNClientManager clientManager,
org.tmatesoft.svn.core.SVNURL url,
org.tmatesoft.svn.core.wc.SVNRevision revision,
File destPath,
boolean isRecursive) |
static org.apache.maven.scm.ScmFileStatus |
getScmFileStatus(org.tmatesoft.svn.core.wc.SVNEventAction action)
Converts a
SVNEventAction to a ScmFileStatus |
static org.tmatesoft.svn.core.SVNCommitInfo |
mkdir(org.tmatesoft.svn.core.wc.SVNClientManager clientManager,
org.tmatesoft.svn.core.SVNURL[] urls,
String commitMessage) |
static void |
status(org.tmatesoft.svn.core.wc.SVNClientManager clientManager,
File wcPath,
boolean isRecursive,
boolean isRemote,
SvnStatusHandler handler)
Collects status information on local path(s).
|
static long |
switchToURL(org.tmatesoft.svn.core.wc.SVNClientManager clientManager,
File wcPath,
org.tmatesoft.svn.core.SVNURL url,
org.tmatesoft.svn.core.wc.SVNRevision updateToRevision,
boolean isRecursive)
Updates a working copy to a different URL.
|
static long |
update(org.tmatesoft.svn.core.wc.SVNUpdateClient updateClient,
File wcPath,
org.tmatesoft.svn.core.wc.SVNRevision updateToRevision,
boolean isRecursive)
Updates a working copy (brings changes from the repository into the working copy).
|
public static org.apache.maven.scm.ScmFileStatus getScmFileStatus(org.tmatesoft.svn.core.wc.SVNEventAction action)
SVNEventAction
to a ScmFileStatus
public static void add(org.tmatesoft.svn.core.wc.SVNClientManager clientManager, File wcPath, boolean recursive) throws org.tmatesoft.svn.core.SVNException
org.tmatesoft.svn.core.SVNException
public static long checkout(org.tmatesoft.svn.core.wc.SVNUpdateClient updateClient, org.tmatesoft.svn.core.SVNURL url, org.tmatesoft.svn.core.wc.SVNRevision revision, File destPath, boolean isRecursive) throws org.tmatesoft.svn.core.SVNException
org.tmatesoft.svn.core.SVNException
public static long export(org.tmatesoft.svn.core.wc.SVNClientManager clientManager, org.tmatesoft.svn.core.SVNURL url, org.tmatesoft.svn.core.wc.SVNRevision revision, File destPath, boolean isRecursive) throws org.tmatesoft.svn.core.SVNException
org.tmatesoft.svn.core.SVNException
public static long switchToURL(org.tmatesoft.svn.core.wc.SVNClientManager clientManager, File wcPath, org.tmatesoft.svn.core.SVNURL url, org.tmatesoft.svn.core.wc.SVNRevision updateToRevision, boolean isRecursive) throws org.tmatesoft.svn.core.SVNException
org.tmatesoft.svn.core.SVNException
public static long update(org.tmatesoft.svn.core.wc.SVNUpdateClient updateClient, File wcPath, org.tmatesoft.svn.core.wc.SVNRevision updateToRevision, boolean isRecursive) throws org.tmatesoft.svn.core.SVNException
org.tmatesoft.svn.core.SVNException
public static void changelog(org.tmatesoft.svn.core.wc.SVNClientManager clientManager, org.tmatesoft.svn.core.SVNURL svnUrl, org.tmatesoft.svn.core.wc.SVNRevision startRevision, org.tmatesoft.svn.core.wc.SVNRevision endRevision, boolean stopOnCopy, boolean reportPaths, org.tmatesoft.svn.core.ISVNLogEntryHandler handler) throws org.tmatesoft.svn.core.SVNException
org.tmatesoft.svn.core.SVNException
public static org.tmatesoft.svn.core.SVNCommitInfo commit(org.tmatesoft.svn.core.wc.SVNCommitClient clientManager, File[] paths, boolean keepLocks, String commitMessage, boolean recursive) throws org.tmatesoft.svn.core.SVNException
org.tmatesoft.svn.core.SVNException
public static void delete(org.tmatesoft.svn.core.wc.SVNClientManager clientManager, List<File> files, boolean force) throws org.tmatesoft.svn.core.SVNException
org.tmatesoft.svn.core.SVNException
public static void status(org.tmatesoft.svn.core.wc.SVNClientManager clientManager, File wcPath, boolean isRecursive, boolean isRemote, SvnStatusHandler handler) throws org.tmatesoft.svn.core.SVNException
org.tmatesoft.svn.core.SVNException
public static org.tmatesoft.svn.core.SVNCommitInfo copy(org.tmatesoft.svn.core.wc.SVNClientManager clientManager, org.tmatesoft.svn.core.SVNURL srcURL, org.tmatesoft.svn.core.SVNURL dstURL, boolean isMove, String commitMessage, String revision) throws org.tmatesoft.svn.core.SVNException
org.tmatesoft.svn.core.SVNException
public static ByteArrayOutputStream diff(org.tmatesoft.svn.core.wc.SVNClientManager clientManager, File baseDir, org.tmatesoft.svn.core.wc.SVNRevision startRevision, org.tmatesoft.svn.core.wc.SVNRevision endRevision) throws org.tmatesoft.svn.core.SVNException
org.tmatesoft.svn.core.SVNException
public static void blame(org.tmatesoft.svn.core.wc.SVNClientManager clientManager, File file, org.tmatesoft.svn.core.wc.ISVNAnnotateHandler handler) throws org.tmatesoft.svn.core.SVNException
clientManager
- file
- org.tmatesoft.svn.core.SVNException
public static org.tmatesoft.svn.core.SVNCommitInfo mkdir(org.tmatesoft.svn.core.wc.SVNClientManager clientManager, org.tmatesoft.svn.core.SVNURL[] urls, String commitMessage) throws org.tmatesoft.svn.core.SVNException
org.tmatesoft.svn.core.SVNException
Copyright © 2013. All Rights Reserved.