|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.tmatesoft.svn.core.wc2.SvnOperation<T>
org.tmatesoft.svn.core.wc2.SvnReceivingOperation<SvnDiffStatus>
org.tmatesoft.svn.core.wc2.SvnDiffSummarize
public class SvnDiffSummarize
Produces a diff summary which lists the changed items between
source in its pegRevision, as it changed
between startRevision and endRevision,
or diff summary between firstSource at its pegRevision
and secondSource at its pegRevision.
Changes are produced without creating text deltas.
startRevision and endRevision of one source:
Source can be either working copy path or URL.
If pegRevision is invalid, behaves identically to
diff between two sources, using source's path for both sources.
source and second source:
First and second sources can be either working copy path or URL.
Both sources must represent the same node kind -- that is, if first source is a directory,
second sources must also be, and if first sources is a file,
second sources must also be.
ignoreAncestry is
false, since a file might have been
modified between two revisions, but still have the same contents.
If depth is SVNDepth.INFINITY, diffs fully
recursively. Else if it is SVNDepth.IMMEDIATES, diffs the named
paths and their file children (if any), and diffs properties of
subdirectories, but does not descend further into the subdirectories.
Else if SVNDepth.FILES, behaves as if for
SVNDepth.IMMEDIATES except doesn't diff properties of
subdirectories. If SVNDepth.EMPTY, diffs exactly the named paths
but nothing underneath them.
SvnOperation.run() method throws SVNException in the following cases:
SVNErrorCode.CLIENT_BAD_REVISION
error code - if either startRevision or endRevision is
invalid
exception with
SVNErrorCode.UNSUPPORTED_FEATURE error code - if
either of startRevision or endRevision is either
SVNRevision.WORKING or SVNRevision.BASE
| Constructor Summary | |
|---|---|
protected |
SvnDiffSummarize(SvnOperationFactory factory)
|
| Method Summary | |
|---|---|
protected void |
ensureArgumentsAreValid()
|
SVNRevision |
getEndRevision()
|
SvnTarget |
getFirstSource()
|
protected java.io.File |
getOperationalWorkingCopy()
|
SvnTarget |
getSecondSource()
|
SvnTarget |
getSource()
Gets the diff's source with start and end revisions for one-target type of operation. |
SVNRevision |
getStartRevision()
|
boolean |
isChangesWorkingCopy()
Gets whether the operation changes working copy |
boolean |
isIgnoreAncestry()
|
void |
setIgnoreAncestry(boolean ignoreAncestry)
|
void |
setSource(SvnTarget source,
SVNRevision start,
SVNRevision end)
Sets the diff's source with start and end revisions for one-source type of operation. |
void |
setSources(SvnTarget source1,
SvnTarget source2)
Sets both diff's sources. |
| Methods inherited from class org.tmatesoft.svn.core.wc2.SvnReceivingOperation |
|---|
first, getReceiver, initDefaults, last, receive, run, setReceiver |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected SvnDiffSummarize(SvnOperationFactory factory)
| Method Detail |
|---|
public void setSource(SvnTarget source,
SVNRevision start,
SVNRevision end)
source with start and end revisions for one-source type of operation.
source - source of the diffstart - start revision of the diffend - end revision of the diff
public void setSources(SvnTarget source1,
SvnTarget source2)
sources.
source1 - first source of the diffsource2 - second source of the diffpublic SvnTarget getSource()
source with start and end revisions for one-target type of operation.
public SVNRevision getStartRevision()
public SVNRevision getEndRevision()
public SvnTarget getFirstSource()
public SvnTarget getSecondSource()
public boolean isIgnoreAncestry()
public void setIgnoreAncestry(boolean ignoreAncestry)
protected java.io.File getOperationalWorkingCopy()
getOperationalWorkingCopy in class SvnOperation<SvnDiffStatus>
protected void ensureArgumentsAreValid()
throws SVNException
ensureArgumentsAreValid in class SvnOperation<SvnDiffStatus>SVNExceptionpublic boolean isChangesWorkingCopy()
isChangesWorkingCopy in class SvnOperation<SvnDiffStatus>true if the operation changes the working copy, otherwise false
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||