Package org.tmatesoft.svn.core.wc2
Class SvnDiffSummarize
java.lang.Object
org.tmatesoft.svn.core.wc2.SvnOperation<T>
org.tmatesoft.svn.core.wc2.SvnReceivingOperation<SvnDiffStatus>
org.tmatesoft.svn.core.wc2.SvnDiffSummarize
- All Implemented Interfaces:
ISvnObjectReceiver<SvnDiffStatus>,ISvnOperationOptionsProvider
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.
-
If it is diff between
startRevisionandendRevisionof onesource:Sourcecan be either working copy path or URL. IfpegRevisionisinvalid, behaves identically to diff between two sources, usingsource's path for both sources. -
If it is diff between first
sourceand secondsource: First and secondsourcescan be either working copy path or URL. Bothsourcesmust represent the same node kind -- that is, if firstsourceis a directory, secondsourcesmust also be, and if firstsourcesis a file, secondsourcesmust 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:
-
exception with
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
- Version:
- 1.7
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate SVNRevisionprivate SvnTargetprivate booleanprivate SvnTargetprivate SvnTargetprivate SVNRevision -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprivate voidensureArgumentsAreValid(SVNURL url1, java.io.File path1, SVNRevision revision1, SVNURL url2, java.io.File path2, SVNRevision revision2, SVNRevision pegRevision) private voidensureRevisionIsValid(SVNRevision revision) protected java.io.FileGets the diff'ssourcewith start and end revisions for one-target type of operation.booleanGets whether the operation changes working copybooleanvoidsetIgnoreAncestry(boolean ignoreAncestry) voidsetSource(SvnTarget source, SVNRevision start, SVNRevision end) Sets the diff'ssourcewith start and end revisions for one-source type of operation.voidsetSources(SvnTarget source1, SvnTarget source2) Sets both diff'ssources.Methods inherited from class org.tmatesoft.svn.core.wc2.SvnReceivingOperation
first, getReceiver, initDefaults, last, receive, run, setReceiverMethods inherited from class org.tmatesoft.svn.core.wc2.SvnOperation
addTarget, cancel, ensureEnoughTargets, ensureHomohenousTargets, getApplicableChangelists, getAuthenticationManager, getCanceller, getDepth, getEventHandler, getFirstTarget, getMaximumTargetsCount, getMinimumTargetsCount, getOperationFactory, getOptions, getRepositoryPool, getRevision, getSqliteJournalMode, getTargets, hasFileTargets, hasLocalTargets, hasRemoteTargets, isCancelled, isSleepForTimestamp, isUseParentWcFormat, needsHomohenousTargets, run, setApplicalbeChangelists, setDepth, setRevision, setSingleTarget, setSleepForTimestamp, setSqliteJournalModeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
firstSource
-
secondSource
-
source
-
startRevision
-
endRevision
-
ignoreAncestry
private boolean ignoreAncestry
-
-
Constructor Details
-
SvnDiffSummarize
-
-
Method Details
-
setSource
Sets the diff'ssourcewith start and end revisions for one-source type of operation.- Parameters:
source- source of the diffstart- start revision of the diffend- end revision of the diff
-
setSources
Sets both diff'ssources.- Parameters:
source1- first source of the diffsource2- second source of the diff
-
getSource
Gets the diff'ssourcewith start and end revisions for one-target type of operation.- Returns:
- source of the diff
-
getStartRevision
-
getEndRevision
-
getFirstSource
-
getSecondSource
-
isIgnoreAncestry
public boolean isIgnoreAncestry() -
setIgnoreAncestry
public void setIgnoreAncestry(boolean ignoreAncestry) -
getOperationalWorkingCopy
protected java.io.File getOperationalWorkingCopy()- Overrides:
getOperationalWorkingCopyin classSvnOperation<SvnDiffStatus>
-
ensureArgumentsAreValid
- Overrides:
ensureArgumentsAreValidin classSvnOperation<SvnDiffStatus>- Throws:
SVNException
-
ensureArgumentsAreValid
private void ensureArgumentsAreValid(SVNURL url1, java.io.File path1, SVNRevision revision1, SVNURL url2, java.io.File path2, SVNRevision revision2, SVNRevision pegRevision) throws SVNException - Throws:
SVNException
-
ensureRevisionIsValid
- Throws:
SVNException
-
isChangesWorkingCopy
public boolean isChangesWorkingCopy()Gets whether the operation changes working copy- Overrides:
isChangesWorkingCopyin classSvnOperation<SvnDiffStatus>- Returns:
trueif the operation changes the working copy, otherwisefalse
-