|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgate.versioning.svnkit.Sandbox
public class Sandbox
This class is a thin layer over the SVNKit working copy API. All methods that
trigger write operations on the sandbox tree are synchronized, but to ensure
that there is not more than one Sandbox associated with a particular
directory tree on disk the SandboxManager class should be used.
| Constructor Summary | |
|---|---|
Sandbox()
Construction. |
|
Sandbox(org.tmatesoft.svn.core.auth.ISVNAuthenticationManager authManager)
Construction with a custom authentication manager. |
|
Sandbox(org.tmatesoft.svn.core.auth.ISVNAuthenticationManager authManager,
File svnconfig)
|
|
Sandbox(String name,
String password)
Construction. |
|
Sandbox(String name,
String password,
File svnconfig)
|
|
| Method Summary | |
|---|---|
void |
addEntry(File wcPath)
Puts directories and files under version control scheduling them for addition to a repository. |
void |
addEntry(File wcPath,
boolean recurse)
Puts directories and files under version control scheduling them for addition to a repository. |
void |
checkCancelled()
If the current operation is preemptible and any other operations are waiting, throw an SVNCancelException. |
long |
checkout(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. |
void |
close()
Close this sandbox, preventing any future operations. |
org.tmatesoft.svn.core.SVNCommitInfo |
commit(File[] wcPath,
boolean keepLocks,
String commitMessage)
Committs changes in a working copy to a repository. |
org.tmatesoft.svn.core.SVNCommitInfo |
copy(org.tmatesoft.svn.core.SVNURL srcURL,
org.tmatesoft.svn.core.SVNURL dstURL,
boolean isMove,
String commitMessage)
Duplicates srcURL to dstURL (URL to URL) preserving history. |
void |
delete(File wcPath,
boolean force)
Schedules directories and files for deletion from version control upon the next commit (locally). |
void |
doResolve(File wcPath,
boolean isRecursive)
Resolve a conflict on local path(s). |
org.tmatesoft.svn.core.wc.SVNStatus |
doStatus(File wcPath,
boolean isRemote)
Collects status information on local path(s). |
org.tmatesoft.svn.core.SVNURL |
getRepositoryRoot(File file)
Returns the URL of the root of the repository containing the given working copy file. |
org.tmatesoft.svn.core.SVNURL |
getRepositoryURL(File file)
Returns the URL corresponding to the repository location of the given working copy file. |
org.tmatesoft.svn.core.SVNCommitInfo |
importDirectory(File localPath,
org.tmatesoft.svn.core.SVNURL dstURL,
String commitMessage,
boolean isRecursive)
Imports an unversioned directory into a repository location denoted by a destination URL (all necessary parent non-existent paths will be created automatically). |
void |
lock(File wcPath,
boolean isStealLock,
String lockComment)
Locks working copy paths, so that no other user can commit changes to them. |
org.tmatesoft.svn.core.SVNCommitInfo |
makeDirectory(org.tmatesoft.svn.core.SVNURL url,
String commitMessage)
Creates a new version controlled directory (doesn't create any intermediate directories) right in a repository. |
void |
relocate(File wcPath,
org.tmatesoft.svn.core.SVNURL oldURL,
org.tmatesoft.svn.core.SVNURL newURL)
Updates a working copy in the same was as 'svn switch --relocate' |
void |
revert(File... wcPaths)
Revert uncommitted changes. |
void |
showInfo(File wcPath,
org.tmatesoft.svn.core.wc.SVNRevision revision,
boolean isRecursive)
Collects information on local path(s). |
void |
showStatus(File wcPath,
boolean isRecursive,
boolean isRemote,
boolean isReportAll,
boolean isIncludeIgnored,
boolean isCollectParentExternals)
Displays status information on local path(s). |
long |
switchToURL(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. |
long |
update(File wcPath,
org.tmatesoft.svn.core.wc.SVNRevision updateToRevision,
boolean isRecursive)
Updates a working copy in a non-preemptible operation. |
long |
update(File wcPath,
org.tmatesoft.svn.core.wc.SVNRevision updateToRevision,
boolean isRecursive,
boolean preemptible)
Updates a working copy (brings changes from the repository into the working copy). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Sandbox()
public Sandbox(String name,
String password)
public Sandbox(String name,
String password,
File svnconfig)
public Sandbox(org.tmatesoft.svn.core.auth.ISVNAuthenticationManager authManager)
public Sandbox(org.tmatesoft.svn.core.auth.ISVNAuthenticationManager authManager,
File svnconfig)
| Method Detail |
|---|
public void close()
public org.tmatesoft.svn.core.SVNCommitInfo makeDirectory(org.tmatesoft.svn.core.SVNURL url,
String commitMessage)
throws org.tmatesoft.svn.core.SVNException
org.tmatesoft.svn.core.SVNException
public org.tmatesoft.svn.core.SVNCommitInfo importDirectory(File localPath,
org.tmatesoft.svn.core.SVNURL dstURL,
String commitMessage,
boolean isRecursive)
throws org.tmatesoft.svn.core.SVNException
org.tmatesoft.svn.core.SVNException
public org.tmatesoft.svn.core.SVNCommitInfo commit(File[] wcPath,
boolean keepLocks,
String commitMessage)
throws org.tmatesoft.svn.core.SVNException
org.tmatesoft.svn.core.SVNException
public long checkout(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 long update(File wcPath,
org.tmatesoft.svn.core.wc.SVNRevision updateToRevision,
boolean isRecursive)
throws org.tmatesoft.svn.core.SVNException
org.tmatesoft.svn.core.SVNExceptionupdate(File,SVNRevision,boolean,boolean)
public long update(File wcPath,
org.tmatesoft.svn.core.wc.SVNRevision updateToRevision,
boolean isRecursive,
boolean preemptible)
throws org.tmatesoft.svn.core.SVNException
preemptible - whether this update can be pre-empted by a "more
important" update on the same sandbox. Typically this would be set to
true for background update jobs that update a whole sandbox and false for
interactive jobs that just update particular files.
org.tmatesoft.svn.core.SVNException
public long switchToURL(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 void relocate(File wcPath,
org.tmatesoft.svn.core.SVNURL oldURL,
org.tmatesoft.svn.core.SVNURL newURL)
throws org.tmatesoft.svn.core.SVNException
org.tmatesoft.svn.core.SVNException
public void showStatus(File wcPath,
boolean isRecursive,
boolean isRemote,
boolean isReportAll,
boolean isIncludeIgnored,
boolean isCollectParentExternals)
throws org.tmatesoft.svn.core.SVNException
org.tmatesoft.svn.core.SVNException
public org.tmatesoft.svn.core.wc.SVNStatus doStatus(File wcPath,
boolean isRemote)
throws org.tmatesoft.svn.core.SVNException
org.tmatesoft.svn.core.SVNException
public void doResolve(File wcPath,
boolean isRecursive)
throws org.tmatesoft.svn.core.SVNException
org.tmatesoft.svn.core.SVNException
public void revert(File... wcPaths)
throws org.tmatesoft.svn.core.SVNException
org.tmatesoft.svn.core.SVNException
public void showInfo(File wcPath,
org.tmatesoft.svn.core.wc.SVNRevision revision,
boolean isRecursive)
throws org.tmatesoft.svn.core.SVNException
org.tmatesoft.svn.core.SVNException
public void addEntry(File wcPath)
throws org.tmatesoft.svn.core.SVNException
org.tmatesoft.svn.core.SVNException
public void addEntry(File wcPath,
boolean recurse)
throws org.tmatesoft.svn.core.SVNException
wcPath - the file or directory to add. Its parent must already be
known to subversion (though not necessarily committed).recurse - if true, and wcPath names a directory, recursively add all
the directories contents. If false, just add the directory itself
but not its contents. Has no effect if wcPath names a normal
file. Note this is different from the recurse parameter to most
other methods in this class, where non-recursive includes files in
the directory but not subdirectories.
org.tmatesoft.svn.core.SVNException
public void lock(File wcPath,
boolean isStealLock,
String lockComment)
throws org.tmatesoft.svn.core.SVNException
org.tmatesoft.svn.core.SVNException
public void delete(File wcPath,
boolean force)
throws org.tmatesoft.svn.core.SVNException
org.tmatesoft.svn.core.SVNException
public org.tmatesoft.svn.core.SVNCommitInfo copy(org.tmatesoft.svn.core.SVNURL srcURL,
org.tmatesoft.svn.core.SVNURL dstURL,
boolean isMove,
String commitMessage)
throws org.tmatesoft.svn.core.SVNException
org.tmatesoft.svn.core.SVNException
public org.tmatesoft.svn.core.SVNURL getRepositoryURL(File file)
throws org.tmatesoft.svn.core.SVNException
file - the file, which must be under version control in a sandbox. The
file need not be checked in but it must be known to subversion
(e.g. it could be added but not yet committed).
org.tmatesoft.svn.core.SVNException
public org.tmatesoft.svn.core.SVNURL getRepositoryRoot(File file)
throws org.tmatesoft.svn.core.SVNException
file - the file, which must be under version control in a sandbox. The
file need not be checked in but it must be known to subversion
(e.g. it could be added but not yet committed).
org.tmatesoft.svn.core.SVNException
public void checkCancelled()
throws org.tmatesoft.svn.core.SVNCancelException
org.tmatesoft.svn.core.SVNCancelException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||