public class SVNStatusReporter17 extends java.lang.Object implements ISVNReporterBaton, ISVNReporter
Constructor and Description |
---|
SVNStatusReporter17(SVNRepository repository,
SVNReporter17 reportBaton,
SVNStatusEditor17 editor) |
Modifier and Type | Method and Description |
---|---|
void |
abortReport()
Aborts the current running report due to errors occured.
|
void |
deletePath(java.lang.String path)
Describes a working copy
path as deleted or missing. |
void |
finishReport()
Finalizes the report.
|
void |
linkPath(SVNURL url,
java.lang.String path,
java.lang.String lockToken,
long revision,
boolean startEmpty)
Describes a local path as being at a particular revision
to switch the path to a different repository location.
|
void |
linkPath(SVNURL url,
java.lang.String path,
java.lang.String lockToken,
long revision,
SVNDepth depth,
boolean startEmpty)
Describes a local path as being at a particular revision
to switch the path to a different repository location.
|
void |
report(ISVNReporter reporter)
Makes a report describing the state of local items in order
to get the differences between the local items and what actually
is in a repository.
|
void |
setPath(java.lang.String path,
java.lang.String lockToken,
long revision,
boolean startEmpty)
Describes a local path as being at a particular revision.
|
void |
setPath(java.lang.String path,
java.lang.String lockToken,
long revision,
SVNDepth depth,
boolean startEmpty)
Describes a working copy
path as being at a particular
revision and having depth depth . |
public SVNStatusReporter17(SVNRepository repository, SVNReporter17 reportBaton, SVNStatusEditor17 editor)
public void report(ISVNReporter reporter) throws SVNException
ISVNReporterBaton
report
in interface ISVNReporterBaton
reporter
- a reporter passed to make reportsSVNException
public void setPath(java.lang.String path, java.lang.String lockToken, long revision, boolean startEmpty) throws SVNException
ISVNReporter
Describes a local path as being at a particular revision.
If startEmpty
is true and the
path
is a directory, an implementor should assume the
directory has no entries or properties (used in checkouts and aborted updates).
A next call to this method will "override" any previous setPath()
calls made on parent
paths. The path
is relative to the repository location specified for an
SVNRepository driver.
setPath
in interface ISVNReporter
path
- a local item's pathlockToken
- if not null, it is a lock token
for the path
revision
- the local item's revision numberstartEmpty
- if true and if the path
is a
directory, then means there're no entries yetSVNException
- in case the repository could not be connectedpublic void setPath(java.lang.String path, java.lang.String lockToken, long revision, SVNDepth depth, boolean startEmpty) throws SVNException
ISVNReporter
path
as being at a particular
revision
and having depth depth
.
revision
may be invalid (<0
) if (for example) path
represents a locally-added path with no revision number, or depth
is SVNDepth.EXCLUDE
.
path
may not be underneath a path on which setPath()
was
previously called with SVNDepth.EXCLUDE
in this report.
If startEmpty
is set and path
is a directory, this will mean that
the directory has no entries or properties.
This will *override* any previous setPath()
calls made on parent
paths.
path
is relative to the location
of the repository access
object.
If lockToken
is non-null, it is the lock token for
path
in the local tree.setPath
in interface ISVNReporter
path
- a local item's pathlockToken
- if not null, it is a lock token
for the path
revision
- the local item's revision numberdepth
- depth of path
startEmpty
- if true and if the path
is a
directory, then means there're no entries yetSVNException
- in case the repository could not be connectedpublic void deletePath(java.lang.String path) throws SVNException
ISVNReporter
path
as deleted or missing.deletePath
in interface ISVNReporter
path
- a path relative to the root of the reportSVNException
- in case the repository could not be connectedpublic void linkPath(SVNURL url, java.lang.String path, java.lang.String lockToken, long revision, boolean startEmpty) throws SVNException
ISVNReporter
setPath()
, but differs in
that the local item's path
(relative to the root
of the report driver) isn't a reflection of the path in the repository,
but is instead a reflection of a different repository path at a
revision
.
If startEmpty
is set and the path
is a directory,
the implementor should assume the directory has no entries or properties.linkPath
in interface ISVNReporter
url
- a new repository location to switch topath
- the local item's pathlockToken
- if not null, it is a lock token
for the path
revision
- the local item's revision numberstartEmpty
- if true and if the path
is a
directory, then means there're no entries yetSVNException
- in case the repository could not be connectedpublic void linkPath(SVNURL url, java.lang.String path, java.lang.String lockToken, long revision, SVNDepth depth, boolean startEmpty) throws SVNException
ISVNReporter
ISVNReporter.setPath(String, String, long, SVNDepth, boolean)
, but differs in
that the local item's path
(relative to the root
of the report driver) isn't a reflection of the path in the repository,
but is instead a reflection of a different repository url
at
revision
, and has depth depth
.
path
may not be underneath a path on which ISVNReporter.setPath(String, String, long, SVNDepth, boolean)
was previously called with SVNDepth.EXCLUDE
in this report.
If startEmpty
is set and path
is a directory, that will mean that
the directory has no entries or props.
If lockToken
is non-null, it is the lock token for
path
in the local tree.linkPath
in interface ISVNReporter
url
- a new repository location to switch topath
- the local item's pathlockToken
- if not null, it is a lock token
for the path
revision
- the local item's revision numberdepth
- depth of path
startEmpty
- if true and if the path
is a
directory, then means there're no entries yetSVNException
- in case the repository could not be connectedpublic void finishReport() throws SVNException
ISVNReporter
Any directories or files not explicitly set (described) are assumed to be at the baseline revision.
finishReport
in interface ISVNReporter
SVNException
- in case the repository could not be connectedpublic void abortReport() throws SVNException
ISVNReporter
If an error occurs during a report, call this method to abort the reporter correctly.
abortReport
in interface ISVNReporter
SVNException
- in case the repository could not be connectedCopyright © 2004-2012 TMate Software Ltd. All Rights Reserved.