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
public class SvnDiffSummarize extends SvnReceivingOperation<SvnDiffStatus>
Produces a diff summary which lists the changed items betweensource
in itspegRevision
, as it changed betweenstartRevision
andendRevision
, or diff summary betweenfirstSource
at itspegRevision
andsecondSource
at itspegRevision
. Changes are produced without creating text deltas.-
If it is diff between
startRevision
andendRevision
of onesource
:Source
can be either working copy path or URL. IfpegRevision
isinvalid
, behaves identically to diff between two sources, usingsource
's path for both sources. -
If it is diff between first
source
and secondsource
: First and secondsources
can be either working copy path or URL. Bothsources
must represent the same node kind -- that is, if firstsource
is a directory, secondsources
must also be, and if firstsources
is a file, secondsources
must also be.
ignoreAncestry
isfalse
, since a file might have been modified between two revisions, but still have the same contents. Ifdepth
isSVNDepth.INFINITY
, diffs fully recursively. Else if it isSVNDepth.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 ifSVNDepth.FILES
, behaves as if forSVNDepth.IMMEDIATES
except doesn't diff properties of subdirectories. IfSVNDepth.EMPTY
, diffs exactly the named paths but nothing underneath them.SvnOperation.run()
method throwsSVNException
in the following cases:-
exception with
SVNErrorCode.CLIENT_BAD_REVISION
error code - if eitherstartRevision
orendRevision
isinvalid
exception withSVNErrorCode.UNSUPPORTED_FEATURE
error code - if either ofstartRevision
or endRevision is eitherSVNRevision.WORKING
orSVNRevision.BASE
- Version:
- 1.7
- Author:
- TMate Software Ltd.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
SvnDiffSummarize(SvnOperationFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
ensureArgumentsAreValid()
SVNRevision
getEndRevision()
SvnTarget
getFirstSource()
protected java.io.File
getOperationalWorkingCopy()
SvnTarget
getSecondSource()
SvnTarget
getSource()
Gets the diff'ssource
with start and end revisions for one-target type of operation.SVNRevision
getStartRevision()
boolean
isChangesWorkingCopy()
Gets whether the operation changes working copyboolean
isIgnoreAncestry()
void
setIgnoreAncestry(boolean ignoreAncestry)
void
setSource(SvnTarget source, SVNRevision start, SVNRevision end)
Sets the diff'ssource
with start and end revisions for one-source type of operation.void
setSources(SvnTarget source1, SvnTarget source2)
Sets both diff'ssources
.-
Methods inherited from class org.tmatesoft.svn.core.wc2.SvnReceivingOperation
first, getReceiver, initDefaults, last, receive, run, setReceiver
-
Methods 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, setSqliteJournalMode
-
-
-
-
Constructor Detail
-
SvnDiffSummarize
protected SvnDiffSummarize(SvnOperationFactory factory)
-
-
Method Detail
-
setSource
public void setSource(SvnTarget source, SVNRevision start, SVNRevision end)
Sets the diff'ssource
with 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
public void setSources(SvnTarget source1, SvnTarget source2)
Sets both diff'ssources
.- Parameters:
source1
- first source of the diffsource2
- second source of the diff
-
getSource
public SvnTarget getSource()
Gets the diff'ssource
with start and end revisions for one-target type of operation.- Returns:
- source of the diff
-
getStartRevision
public SVNRevision getStartRevision()
-
getEndRevision
public SVNRevision getEndRevision()
-
getFirstSource
public SvnTarget getFirstSource()
-
getSecondSource
public SvnTarget getSecondSource()
-
isIgnoreAncestry
public boolean isIgnoreAncestry()
-
setIgnoreAncestry
public void setIgnoreAncestry(boolean ignoreAncestry)
-
getOperationalWorkingCopy
protected java.io.File getOperationalWorkingCopy()
- Overrides:
getOperationalWorkingCopy
in classSvnOperation<SvnDiffStatus>
-
ensureArgumentsAreValid
protected void ensureArgumentsAreValid() throws SVNException
- Overrides:
ensureArgumentsAreValid
in classSvnOperation<SvnDiffStatus>
- Throws:
SVNException
-
isChangesWorkingCopy
public boolean isChangesWorkingCopy()
Gets whether the operation changes working copy- Overrides:
isChangesWorkingCopy
in classSvnOperation<SvnDiffStatus>
- Returns:
true
if the operation changes the working copy, otherwisefalse
-
-