|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.tmatesoft.svn.core.wc.SVNBasicClient
org.tmatesoft.svn.core.wc.SVNDiffClient
public class SVNDiffClient
The SVNDiffClient class provides methods allowing to get differences between versioned items ('diff' operation) as well as ones intended for merging file contents.
Here's a list of the SVNDiffClient's methods matched against corresponing commands of the SVN command line client:
| SVNKit | Subversion |
| doDiff() | 'svn diff' |
| doDiffStatus() | 'svn diff --summarize' |
| doMerge() | 'svn merge' |
| doGetLogXXXMergeInfo() | 'svn mergeinfo' |
| Constructor Summary | |
|---|---|
SVNDiffClient(ISVNAuthenticationManager authManager,
ISVNOptions options)
Constructs and initializes an SVNDiffClient object with the specified run-time configuration and authentication drivers. |
|
SVNDiffClient(ISVNRepositoryPool repositoryPool,
ISVNOptions options)
Constructs and initializes an SVNDiffClient object with the specified run-time configuration and repository pool object. |
|
| Method Summary | |
|---|---|
void |
doDiff(java.io.File[] paths,
SVNRevision rN,
SVNRevision rM,
SVNRevision pegRevision,
SVNDepth depth,
boolean useAncestry,
java.io.OutputStream result,
java.util.Collection<java.lang.String> changeLists)
Iterates over the passed in paths calling
doDiff(File, SVNRevision, SVNRevision, SVNRevision, SVNDepth, boolean, OutputStream, Collection)
for each one in the array. |
void |
doDiff(java.io.File path1,
SVNRevision rN,
java.io.File path2,
SVNRevision rM,
boolean recursive,
boolean useAncestry,
java.io.OutputStream result)
Deprecated. use doDiff(File, SVNRevision, File, SVNRevision, SVNDepth, boolean, OutputStream, Collection)
instead |
void |
doDiff(java.io.File path1,
SVNRevision rN,
java.io.File path2,
SVNRevision rM,
SVNDepth depth,
boolean useAncestry,
java.io.OutputStream result,
java.util.Collection<java.lang.String> changeLists)
Produces diff output which describes the delta between path1
/rN and path2/rM. |
void |
doDiff(java.io.File path,
SVNRevision pegRevision,
SVNRevision rN,
SVNRevision rM,
boolean recursive,
boolean useAncestry,
java.io.OutputStream result)
Deprecated. use doDiff(File, SVNRevision, SVNRevision, SVNRevision, SVNDepth, boolean, OutputStream, Collection)
instead |
void |
doDiff(java.io.File path,
SVNRevision pegRevision,
SVNRevision rN,
SVNRevision rM,
SVNDepth depth,
boolean useAncestry,
java.io.OutputStream result,
java.util.Collection<java.lang.String> changeLists)
Produces diff output which describes the delta between path
in peg revision pegRevision, as it changed between
rN and rM. |
void |
doDiff(java.io.File path1,
SVNRevision rN,
SVNURL url2,
SVNRevision rM,
boolean recursive,
boolean useAncestry,
java.io.OutputStream result)
Deprecated. use doDiff(File, SVNRevision, SVNURL, SVNRevision, SVNDepth, boolean, OutputStream, Collection)
instead |
void |
doDiff(java.io.File path1,
SVNRevision rN,
SVNURL url2,
SVNRevision rM,
SVNDepth depth,
boolean useAncestry,
java.io.OutputStream result,
java.util.Collection<java.lang.String> changeLists)
Produces diff output which describes the delta between path1
/rN and url2/rM. |
void |
doDiff(SVNURL url1,
SVNRevision rN,
java.io.File path2,
SVNRevision rM,
boolean recursive,
boolean useAncestry,
java.io.OutputStream result)
Deprecated. use doDiff(SVNURL, SVNRevision, File, SVNRevision, SVNDepth, boolean, OutputStream, Collection)
instead |
void |
doDiff(SVNURL url1,
SVNRevision rN,
java.io.File path2,
SVNRevision rM,
SVNDepth depth,
boolean useAncestry,
java.io.OutputStream result,
java.util.Collection<java.lang.String> changeLists)
Produces diff output which describes the delta between url1/
rN and path2/rM. |
void |
doDiff(SVNURL url,
SVNRevision pegRevision,
SVNRevision rN,
SVNRevision rM,
boolean recursive,
boolean useAncestry,
java.io.OutputStream result)
Deprecated. use doDiff(SVNURL, SVNRevision, SVNRevision, SVNRevision, SVNDepth, boolean, OutputStream)
instead |
void |
doDiff(SVNURL url,
SVNRevision pegRevision,
SVNRevision rN,
SVNRevision rM,
SVNDepth depth,
boolean useAncestry,
java.io.OutputStream result)
Produces diff output which describes the delta between url
in peg revision pegRevision, as it changed between
rN and rM. |
void |
doDiff(SVNURL url1,
SVNRevision rN,
SVNURL url2,
SVNRevision rM,
boolean recursive,
boolean useAncestry,
java.io.OutputStream result)
Deprecated. use doDiff(SVNURL, SVNRevision, SVNURL, SVNRevision, SVNDepth, boolean, OutputStream)
instead |
void |
doDiff(SVNURL url1,
SVNRevision rN,
SVNURL url2,
SVNRevision rM,
SVNDepth depth,
boolean useAncestry,
java.io.OutputStream result)
Produces diff output which describes the delta between url1/
rN and url2/rM. |
void |
doDiffStatus(java.io.File path1,
SVNRevision rN,
java.io.File path2,
SVNRevision rM,
boolean recursive,
boolean useAncestry,
ISVNDiffStatusHandler handler)
Deprecated. use doDiffStatus(File, SVNRevision, File, SVNRevision, SVNDepth, boolean, ISVNDiffStatusHandler)
instead |
void |
doDiffStatus(java.io.File path1,
SVNRevision rN,
java.io.File path2,
SVNRevision rM,
SVNDepth depth,
boolean useAncestry,
ISVNDiffStatusHandler handler)
Produces a diff summary which lists the changed items between path1/rN and path2/rM
without creating text deltas. |
void |
doDiffStatus(java.io.File path,
SVNRevision rN,
SVNRevision rM,
SVNRevision pegRevision,
SVNDepth depth,
boolean useAncestry,
ISVNDiffStatusHandler handler)
Produces a diff summary which lists the changed items between path in peg revision pegRevision, as it changed
between rN and rM. |
void |
doDiffStatus(java.io.File path1,
SVNRevision rN,
SVNURL url2,
SVNRevision rM,
boolean recursive,
boolean useAncestry,
ISVNDiffStatusHandler handler)
Deprecated. use doDiffStatus(File, SVNRevision, SVNURL, SVNRevision, SVNDepth, boolean, ISVNDiffStatusHandler)
instead |
void |
doDiffStatus(java.io.File path1,
SVNRevision rN,
SVNURL url2,
SVNRevision rM,
SVNDepth depth,
boolean useAncestry,
ISVNDiffStatusHandler handler)
Produces a diff summary which lists the changed items between path1/rN and url2/rM
without creating text deltas. |
void |
doDiffStatus(SVNURL url1,
SVNRevision rN,
java.io.File path2,
SVNRevision rM,
boolean recursive,
boolean useAncestry,
ISVNDiffStatusHandler handler)
Deprecated. use doDiffStatus(SVNURL, SVNRevision, File, SVNRevision, SVNDepth, boolean, ISVNDiffStatusHandler)
instead |
void |
doDiffStatus(SVNURL url1,
SVNRevision rN,
java.io.File path2,
SVNRevision rM,
SVNDepth depth,
boolean useAncestry,
ISVNDiffStatusHandler handler)
Produces a diff summary which lists the changed items between url1/rN and path2/rM
without creating text deltas. |
void |
doDiffStatus(SVNURL url,
SVNRevision rN,
SVNRevision rM,
SVNRevision pegRevision,
SVNDepth depth,
boolean useAncestry,
ISVNDiffStatusHandler handler)
Produces a diff summary which lists the changed items between url in peg revision pegRevision, as it changed
between rN and rM. |
void |
doDiffStatus(SVNURL url1,
SVNRevision rN,
SVNURL url2,
SVNRevision rM,
boolean recursive,
boolean useAncestry,
ISVNDiffStatusHandler handler)
Deprecated. use doDiffStatus(SVNURL, SVNRevision, SVNURL, SVNRevision, SVNDepth, boolean, ISVNDiffStatusHandler)
instead |
void |
doDiffStatus(SVNURL url1,
SVNRevision rN,
SVNURL url2,
SVNRevision rM,
SVNDepth depth,
boolean useAncestry,
ISVNDiffStatusHandler handler)
Produces a diff summary which lists the changed items between url1/rN and url2/rM
without creating text deltas. |
void |
doGetLogEligibleMergeInfo(java.io.File path,
SVNRevision pegRevision,
java.io.File mergeSrcPath,
SVNRevision srcPegRevision,
boolean discoverChangedPaths,
java.lang.String[] revisionProperties,
ISVNLogEntryHandler handler)
Drives a log entry handler with the revisions eligible for
merge from mergeSrcPath (as of srcPegRevision)
into path (as of pegRevision). |
void |
doGetLogEligibleMergeInfo(java.io.File path,
SVNRevision pegRevision,
SVNURL mergeSrcURL,
SVNRevision srcPegRevision,
boolean discoverChangedPaths,
java.lang.String[] revisionProperties,
ISVNLogEntryHandler handler)
Drives a log entry handler with the revisions eligible for
merge from mergeSrcURL (as of srcPegRevision)
into path (as of pegRevision). |
void |
doGetLogEligibleMergeInfo(SVNURL url,
SVNRevision pegRevision,
java.io.File mergeSrcPath,
SVNRevision srcPegRevision,
boolean discoverChangedPaths,
java.lang.String[] revisionProperties,
ISVNLogEntryHandler handler)
Drives a log entry handler with the revisions eligible for
merge from mergeSrcPath (as of srcPegRevision)
into url (as of pegRevision). |
void |
doGetLogEligibleMergeInfo(SVNURL url,
SVNRevision pegRevision,
SVNURL mergeSrcURL,
SVNRevision srcPegRevision,
boolean discoverChangedPaths,
java.lang.String[] revisionProperties,
ISVNLogEntryHandler handler)
Drives a log entry handler with the revisions eligible for
merge from mergeSrcURL (as of srcPegRevision)
into url (as of pegRevision). |
void |
doGetLogMergedMergeInfo(java.io.File path,
SVNRevision pegRevision,
java.io.File mergeSrcPath,
SVNRevision srcPegRevision,
boolean discoverChangedPaths,
java.lang.String[] revisionProperties,
ISVNLogEntryHandler handler)
Drives a log entry handler with the revisions merged from
mergeSrcPath (as of srcPegRevision) into
path (as of pegRevision). |
void |
doGetLogMergedMergeInfo(java.io.File path,
SVNRevision pegRevision,
SVNURL mergeSrcURL,
SVNRevision srcPegRevision,
boolean discoverChangedPaths,
java.lang.String[] revisionProperties,
ISVNLogEntryHandler handler)
Drives a log entry handler with the revisions merged from
mergeSrcURL (as of srcPegRevision) into
path (as of pegRevision). |
void |
doGetLogMergedMergeInfo(SVNURL url,
SVNRevision pegRevision,
java.io.File mergeSrcPath,
SVNRevision srcPegRevision,
boolean discoverChangedPaths,
java.lang.String[] revisionProperties,
ISVNLogEntryHandler handler)
Drives a log entry handler with the revisions merged from
mergeSrcPath (as of srcPegRevision) into
url (as of pegRevision). |
void |
doGetLogMergedMergeInfo(SVNURL url,
SVNRevision pegRevision,
SVNURL mergeSrcURL,
SVNRevision srcPegRevision,
boolean discoverChangedPaths,
java.lang.String[] revisionProperties,
ISVNLogEntryHandler handler)
Drives a log entry handler with the revisions merged from
mergeSrcURL (as of srcPegRevision) into
url (as of pegRevision). |
java.util.Map<SVNURL,SVNMergeRangeList> |
doGetMergedMergeInfo(java.io.File path,
SVNRevision pegRevision)
Returns mergeinfo as a Map with merge source URLs (as
SVNURL) mapped to range lists (SVNMergeRangeList). |
java.util.Map<SVNURL,SVNMergeRangeList> |
doGetMergedMergeInfo(SVNURL url,
SVNRevision pegRevision)
Returns mergeinfo as a Map with merge source URLs (as
SVNURL) mapped to range lists (SVNMergeRangeList). |
void |
doMerge(java.io.File path1,
SVNRevision pegRevision,
java.util.Collection<SVNRevisionRange> rangesToMerge,
java.io.File dstPath,
SVNDepth depth,
boolean useAncestry,
boolean force,
boolean dryRun,
boolean recordOnly)
Merges the changes between path1 in peg revision
pegRevision, as it changed between the ranges described in
rangesToMerge. |
void |
doMerge(java.io.File path1,
SVNRevision revision1,
java.io.File path2,
SVNRevision revision2,
java.io.File dstPath,
boolean recursive,
boolean useAncestry,
boolean force,
boolean dryRun)
Deprecated. use doMerge(File, SVNRevision, File, SVNRevision, File, SVNDepth, boolean, boolean, boolean, boolean)
instead |
void |
doMerge(java.io.File path1,
SVNRevision revision1,
java.io.File path2,
SVNRevision revision2,
java.io.File dstPath,
SVNDepth depth,
boolean useAncestry,
boolean force,
boolean dryRun,
boolean recordOnly)
Merges changes from path1/revision1 to
path2/revision2 into the working-copy path
dstPath. |
void |
doMerge(java.io.File path1,
SVNRevision pegRevision,
SVNRevision revision1,
SVNRevision revision2,
java.io.File dstPath,
boolean recursive,
boolean useAncestry,
boolean force,
boolean dryRun)
Deprecated. use doMerge(File, SVNRevision, Collection, File, SVNDepth, boolean, boolean, boolean, boolean)
instead |
void |
doMerge(java.io.File path1,
SVNRevision revision1,
SVNURL url2,
SVNRevision revision2,
java.io.File dstPath,
boolean recursive,
boolean useAncestry,
boolean force,
boolean dryRun)
Deprecated. use doMerge(File, SVNRevision, SVNURL, SVNRevision, File, SVNDepth, boolean, boolean, boolean, boolean)
instead |
void |
doMerge(java.io.File path1,
SVNRevision revision1,
SVNURL url2,
SVNRevision revision2,
java.io.File dstPath,
SVNDepth depth,
boolean useAncestry,
boolean force,
boolean dryRun,
boolean recordOnly)
Merges changes from path1/revision1 to
url2/revision2 into the working-copy path
dstPath. |
void |
doMerge(SVNURL url1,
SVNRevision pegRevision,
java.util.Collection<SVNRevisionRange> rangesToMerge,
java.io.File dstPath,
SVNDepth depth,
boolean useAncestry,
boolean force,
boolean dryRun,
boolean recordOnly)
Merges the changes between url1 in peg revision
pegRevision, as it changed between the ranges described in
rangesToMerge. |
void |
doMerge(SVNURL url1,
SVNRevision revision1,
java.io.File path2,
SVNRevision revision2,
java.io.File dstPath,
boolean recursive,
boolean useAncestry,
boolean force,
boolean dryRun)
Deprecated. use doMerge(SVNURL, SVNRevision, File, SVNRevision, File, SVNDepth, boolean, boolean, boolean, boolean)
instead |
void |
doMerge(SVNURL url1,
SVNRevision revision1,
java.io.File path2,
SVNRevision revision2,
java.io.File dstPath,
SVNDepth depth,
boolean useAncestry,
boolean force,
boolean dryRun,
boolean recordOnly)
Merges changes from url1/revision1 to
path2/revision2 into the working-copy path
dstPath. |
void |
doMerge(SVNURL url1,
SVNRevision pegRevision,
SVNRevision revision1,
SVNRevision revision2,
java.io.File dstPath,
boolean recursive,
boolean useAncestry,
boolean force,
boolean dryRun)
Deprecated. use doMerge(SVNURL, SVNRevision, Collection, File, SVNDepth, boolean, boolean, boolean, boolean)
instead |
void |
doMerge(SVNURL url1,
SVNRevision revision1,
SVNURL url2,
SVNRevision revision2,
java.io.File dstPath,
boolean recursive,
boolean useAncestry,
boolean force,
boolean dryRun)
Deprecated. use doMerge(SVNURL, SVNRevision, SVNURL, SVNRevision, File, SVNDepth, boolean, boolean, boolean, boolean)
instead |
void |
doMerge(SVNURL url1,
SVNRevision revision1,
SVNURL url2,
SVNRevision revision2,
java.io.File dstPath,
SVNDepth depth,
boolean useAncestry,
boolean force,
boolean dryRun,
boolean recordOnly)
Merges changes from url1/revision1 to
url2/revision2 into the working-copy path
dstPath. |
void |
doMergeReIntegrate(java.io.File srcPath,
SVNRevision pegRevision,
java.io.File dstPath,
boolean dryRun)
Performs a reintegration merge of srcPath at
pegRevision into dstPath. |
void |
doMergeReIntegrate(SVNURL srcURL,
SVNRevision pegRevision,
java.io.File dstPath,
boolean dryRun)
Performs a reintegration merge of srcURL at
pegRevision into dstPath. |
void |
doPatch(java.io.File absPatchPath,
java.io.File localAbsPath,
boolean dryRun,
int stripCount)
|
java.util.Collection<SVNURL> |
doSuggestMergeSources(java.io.File path,
SVNRevision pegRevision)
Returns a collection of potential merge sources (expressed as full repository URLs) for path at
pegRevision. |
java.util.Collection<SVNURL> |
doSuggestMergeSources(SVNURL url,
SVNRevision pegRevision)
Returns a collection of potential merge sources (expressed as full repository URLs) for url at
pegRevision. |
ISVNDiffGenerator |
getDiffGenerator()
Returns the diff driver being in use. |
SVNDiffOptions |
getMergeOptions()
Gets the diff options that are used in merge operations by this client. |
boolean |
isAllowMixedRevisionsWCForMerge()
|
boolean |
isGitDiffFormat()
|
boolean |
isShowCopiesAsAdds()
|
void |
setAllowMixedRevisionsWCForMerge(boolean allowMixedRevisions)
|
void |
setDiffGenerator(ISVNDiffGenerator diffGenerator)
Sets the specified diff driver for this object to use for generating and writing file differences to an otput stream. |
void |
setGitDiffFormat(boolean gitDiffFormat)
|
void |
setMergeOptions(SVNDiffOptions diffOptions)
Sets diff options for this client to use in merge operations. |
void |
setShowCopiesAsAdds(boolean showCopiesAsAdds)
|
| Methods inherited from class org.tmatesoft.svn.core.wc.SVNBasicClient |
|---|
dontWC17Support, getDebugLog, getOperationsFactory, getOptions, getPathListHandler, getReposRoot, getReposRoot, isIgnoreExternals, isLeaveConflictsUnresolved, isWC17Supported, setDebugLog, setEventHandler, setEventPathPrefix, setIgnoreExternals, setLeaveConflictsUnresolved, setOptions, setPathListHandler |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SVNDiffClient(ISVNAuthenticationManager authManager,
ISVNOptions options)
options is null, then
this SVNDiffClient will be using a default run-time configuration
driver which takes client-side settings from the default SVN's run-time
configuration area but is not able to change those settings (read more on
ISVNOptions and SVNWCUtil).
If authManager is null,
then this SVNDiffClient will be using a default authentication and
network layers driver (see
SVNWCUtil.createDefaultAuthenticationManager()) which uses
server-side settings and auth storage from the default SVN's run-time
configuration area (or system properties if that area is not found).
authManager - an authentication and network layers driveroptions - a run-time configuration options driver
public SVNDiffClient(ISVNRepositoryPool repositoryPool,
ISVNOptions options)
options is null, then
this SVNDiffClient will be using a default run-time configuration
driver which takes client-side settings from the default SVN's run-time
configuration area but is not able to change those settings (read more on
ISVNOptions and SVNWCUtil).
If repositoryPool is null,
then SVNRepositoryFactory will be used
to create repository access objects.
repositoryPool - a repository pool objectoptions - a run-time configuration options driver| Method Detail |
|---|
public void setDiffGenerator(ISVNDiffGenerator diffGenerator)
If no specific diff driver was set in this way, a default one will be
used (see DefaultSVNDiffGenerator).
diffGenerator - a diff drivergetDiffGenerator()public ISVNDiffGenerator getDiffGenerator()
If no specific diff driver was previously provided, a default one will be
returned (see DefaultSVNDiffGenerator).
setDiffGenerator(ISVNDiffGenerator)public void setMergeOptions(SVNDiffOptions diffOptions)
diffOptions - diff options objectpublic SVNDiffOptions getMergeOptions()
new SVNDiffOptions() will be returned and used further.
public void doDiff(SVNURL url,
SVNRevision pegRevision,
SVNRevision rN,
SVNRevision rM,
boolean recursive,
boolean useAncestry,
java.io.OutputStream result)
throws SVNException
doDiff(SVNURL, SVNRevision, SVNRevision, SVNRevision, SVNDepth, boolean, OutputStream)
instead
Corresponds to the SVN command line client's 'svn diff -r N:M URL' command.
url - a repository locationpegRevision - a revision in which url is first looked uprN - an old revisionrM - a new revisionrecursive - true to descend recursivelyuseAncestry - if true then the paths
ancestry will be noticed while calculating differences,
otherwise notresult - the target OutputStream where the differences
will be written to
SVNException - if one of the following is true:
rN, rM and
pegRevision is invalid rN and rM is a local revision (see
SVNRevision.isLocal()) url was not
found in rN url was not found
in rM
public void doDiff(SVNURL url,
SVNRevision pegRevision,
SVNRevision rN,
SVNRevision rM,
SVNDepth depth,
boolean useAncestry,
java.io.OutputStream result)
throws SVNException
url
in peg revision pegRevision, as it changed between
rN and rM.
If
pegRevision is invalid, behaves identically to
doDiff(SVNURL, SVNRevision, SVNURL, SVNRevision, SVNDepth, boolean, OutputStream),
using url for both of that function's url1 and
url2 arguments.
All other options are handled identically to
doDiff(SVNURL, SVNRevision, SVNURL, SVNRevision, SVNDepth, boolean, OutputStream).
- Parameters:
url - a repository locationpegRevision - a revision in which url is first looked uprN - an old revisionrM - a new revisiondepth - tree depth to processuseAncestry - if true then the paths
ancestry will be noticed while calculating differences,
otherwise notresult - the target OutputStream where the differences
will be written to
- Throws:
SVNException - if one of the following is true:
- exception with
SVNErrorCode.CLIENT_BAD_REVISION
error code - if either of rN and rM
is either invalid or
local - exception with
SVNErrorCode.FS_NOT_FOUND error code - url
can not be found in either rN or
rM
- Since:
- 1.2, SVN 1.5
public void doDiff(java.io.File path,
SVNRevision pegRevision,
SVNRevision rN,
SVNRevision rM,
boolean recursive,
boolean useAncestry,
java.io.OutputStream result)
throws SVNException
doDiff(File, SVNRevision, SVNRevision, SVNRevision, SVNDepth, boolean, OutputStream, Collection)
instead
If rM is a local revision (see SVNRevision.isLocal()
), then the Working Copy path is compared with the
corresponding repository file at revision rN (that is
similar to the SVN command line client's 'svn diff -r N path' command).
Otherwise if both rN and rM are non-local, then
the repository location of path is compared for these
revisions ('svn diff -r N:M URL').
path - a Working Copy pathpegRevision - a revision in which the repository location of
path is first looked uprN - an old revisionrM - a new revision (or a local one)recursive - true to descend recursivelyuseAncestry - if true then the paths
ancestry will be noticed while calculating differences,
otherwise notresult - the target OutputStream where the differences
will be written to
SVNException - if one of the following is true:
rN, rM and
pegRevision is invalid rN
and rM are local revisions path
was not found in rN path was
not found in rM
public void doDiff(java.io.File[] paths,
SVNRevision rN,
SVNRevision rM,
SVNRevision pegRevision,
SVNDepth depth,
boolean useAncestry,
java.io.OutputStream result,
java.util.Collection<java.lang.String> changeLists)
throws SVNException
paths calling
doDiff(File, SVNRevision, SVNRevision, SVNRevision, SVNDepth, boolean, OutputStream, Collection)
for each one in the array.
paths - array of working copy pathsrN - an old revisionrM - a new revisionpegRevision - a revision in which the repository location of
paths is first looked updepth - tree depth to processuseAncestry - if true then the paths
ancestry will be noticed while calculating differences,
otherwise notresult - the target OutputStream where the differences
will be written tochangeLists - collection with changelist names
SVNException
public void doDiff(java.io.File path,
SVNRevision pegRevision,
SVNRevision rN,
SVNRevision rM,
SVNDepth depth,
boolean useAncestry,
java.io.OutputStream result,
java.util.Collection<java.lang.String> changeLists)
throws SVNException
path
in peg revision pegRevision, as it changed between
rN and rM.
If rM is neither SVNRevision.BASE, nor
SVNRevision.WORKING, nor SVNRevision.COMMITTED, and if,
on the contrary, rN is one of the aforementioned revisions,
then a wc-against-url diff is performed; if rN also is not
one of those revision constants, then a url-against-url diff is
performed. Otherwise it's a url-against-wc diff.
If
pegRevision is invalid, behaves identically to
doDiff(File, SVNRevision, File, SVNRevision, SVNDepth, boolean, OutputStream, Collection),
using path for both of that function's path1
and path2 arguments.
All other options are handled identically to
doDiff(File, SVNRevision, File, SVNRevision, SVNDepth, boolean, OutputStream, Collection).
- Parameters:
path - a Working Copy pathpegRevision - a revision in which the repository location of
path is first looked uprN - an old revisionrM - a new revisiondepth - tree depth to processuseAncestry - if true then the paths
ancestry will be noticed while calculating differences,
otherwise notresult - the target OutputStream where the differences
will be written tochangeLists - collection with changelist names
- Throws:
SVNException - if one of the following is true:
- exception with
SVNErrorCode.CLIENT_BAD_REVISION
error code - if either of rN and rM
is invalid; if both rN
and rM are either
SVNRevision.WORKING or SVNRevision.BASE -
exception with
SVNErrorCode.FS_NOT_FOUND error code -
path can not be found in either rN
or rM
- Since:
- 1.2, SVN 1.5
public void doDiff(SVNURL url1,
SVNRevision rN,
SVNURL url2,
SVNRevision rM,
boolean recursive,
boolean useAncestry,
java.io.OutputStream result)
throws SVNException
doDiff(SVNURL, SVNRevision, SVNURL, SVNRevision, SVNDepth, boolean, OutputStream)
instead
Corresponds to the SVN command line client's 'svn diff -r N:M URL1 URL2' command.
url1 - the first URL to be comparedrN - a revision of url1url2 - the second URL to be comparedrM - a revision of url2recursive - true to descend recursivelyuseAncestry - if true then the paths
ancestry will be noticed while calculating differences,
otherwise notresult - the target OutputStream where the differences
will be written to
SVNException - if one of the following is true:
rN and rM is
invalid url1 was not found in rN
url2 was not found in rM
public void doDiff(SVNURL url1,
SVNRevision rN,
SVNURL url2,
SVNRevision rM,
SVNDepth depth,
boolean useAncestry,
java.io.OutputStream result)
throws SVNException
url1/
rN and url2/rM. Writes the output
of the diff to result.
If this client object uses DefaultSVNDiffGenerator and there was
a non-null
base path provided to
it, the original path and modified path will have this base path stripped
from the front of the respective paths. If the base path is not null but is not a parent path of the target,
an exception with the SVNErrorCode.BAD_RELATIVE_PATH error code
is thrown.
url1 and url2 must both represent the same node
kind -- that is, if url1 is a directory, url2
must also be, and if url1 is a file, url2 must
also be.
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.
useAncestry controls whether or not items being diffed will
be checked for relatedness first. Unrelated items are typically
transmitted to the editor as a deletion of one thing and the addition of
another, but if this flag is true,
unrelated items will be diffed as if they were related.
If ISVNDiffGenerator.isDiffDeleted() returns true, then no diff output will be generated on
deleted files.
Generated headers are encoded using
ISVNDiffGenerator.getEncoding().
Diffs output will not be generated for binary files, unless
ISVNDiffGenerator.isForcedBinaryDiff() is true, in which case diffs will be shown
regardless of the content types.
If this client object uses DefaultSVNDiffGenerator then a caller
can set SVNDiffOptions to it which will be used to pass
additional options to the diff processes invoked to compare files.
url1 - the first URL to be comparedrN - a revision of url1url2 - the second URL to be compared against path1rM - a revision of url2depth - tree depth to processuseAncestry - if true then the paths
ancestry will be noticed while calculating differences,
otherwise notresult - the target OutputStream where the differences
will be written to
SVNException - in the following cases:
SVNErrorCode.CLIENT_BAD_REVISION
error code - if either rN or rM is
invalid
public void doDiff(java.io.File path1,
SVNRevision rN,
SVNURL url2,
SVNRevision rM,
boolean recursive,
boolean useAncestry,
java.io.OutputStream result)
throws SVNException
doDiff(File, SVNRevision, SVNURL, SVNRevision, SVNDepth, boolean, OutputStream, Collection)
instead
If rN is not a local revision (see
SVNRevision.isLocal()), then its repository location URL as it is
in the revision represented by rN is taken for comparison
with url2.
Corresponds to the SVN command line client's 'svn diff -r N:M PATH URL' command.
path1 - a WC pathrN - a revision of path1url2 - a repository location URL that is to be compared against
path1 (or its repository location)rM - a revision of url2recursive - true to descend recursivelyuseAncestry - if true then the paths
ancestry will be noticed while calculating differences,
otherwise notresult - the target OutputStream where the differences
will be written to
SVNException - if one of the following is true:
rN and rM is
invalid path1 is not under version control
path1 has no URL url2 was
not found in rM path1 was not found in rN
public void doDiff(java.io.File path1,
SVNRevision rN,
SVNURL url2,
SVNRevision rM,
SVNDepth depth,
boolean useAncestry,
java.io.OutputStream result,
java.util.Collection<java.lang.String> changeLists)
throws SVNException
path1
/rN and url2/rM. Writes the output
of the diff to result.
If this client object uses DefaultSVNDiffGenerator and there was
a non-null
base path provided to
it, the original path and modified path will have this base path stripped
from the front of the respective paths. If the base path is not null but is not a parent path of the target,
an exception with the SVNErrorCode.BAD_RELATIVE_PATH error code
is thrown.
path1 and url2 must both represent the same
node kind -- that is, if path1 is a directory,
url2 must also be, and if path1 is a file,
url2 must also be.
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.
useAncestry controls whether or not items being diffed will
be checked for relatedness first. Unrelated items are typically
transmitted to the editor as a deletion of one thing and the addition of
another, but if this flag is true,
unrelated items will be diffed as if they were related.
If ISVNDiffGenerator.isDiffDeleted() returns true, then no diff output will be generated on
deleted files.
Generated headers are encoded using
ISVNDiffGenerator.getEncoding().
Diffs output will not be generated for binary files, unless
ISVNDiffGenerator.isForcedBinaryDiff() is true, in which case diffs will be shown
regardless of the content types.
If this client object uses DefaultSVNDiffGenerator then a caller
can set SVNDiffOptions to it which will be used to pass
additional options to the diff processes invoked to compare files.
changeLists is a collection of String
changelist names, used as a restrictive filter on items whose differences
are reported; that is, doesn't generate diffs about any item unless it's
a member of one of those changelists. If changeLists is
empty (or null), no changelist filtering
occurs.
Note: changelist filtering only applies to diffs in which at least one
side of the diff represents working copy data.
If both rN is either SVNRevision.WORKING or
SVNRevision.BASE, then it will be a wc-against-url; otherwise, a
url-against-url diff.
path1 - a WC pathrN - a revision of path1url2 - a repository location URL that is to be compared against
path1 (or its repository location)rM - a revision of url2depth - tree depth to processuseAncestry - if true then the paths
ancestry will be noticed while calculating differences,
otherwise notresult - the target OutputStream where the differences
will be written tochangeLists - collection with changelist names
SVNException - in the following cases:
SVNErrorCode.CLIENT_BAD_REVISION
error code - if either rN or rM is
invalid
public void doDiff(SVNURL url1,
SVNRevision rN,
java.io.File path2,
SVNRevision rM,
boolean recursive,
boolean useAncestry,
java.io.OutputStream result)
throws SVNException
doDiff(SVNURL, SVNRevision, File, SVNRevision, SVNDepth, boolean, OutputStream, Collection)
instead
If rM is not a local revision (see
SVNRevision.isLocal()), then its repository location URL as it is
in the revision represented by rM is taken for comparison
with url1.
Corresponds to the SVN command line client's 'svn diff -r N:M URL PATH' command.
url1 - a repository location URLrN - a revision of url1path2 - a WC path that is to be compared against url1rM - a revision of path2recursive - true to descend recursivelyuseAncestry - if true then the paths
ancestry will be noticed while calculating differences,
otherwise notresult - the target OutputStream where the differences
will be written to
SVNException - if one of the following is true:
rN and rM is
invalid path2 is not under version control
path2 has no URL url1 was
not found in rN path2 was not found in rM
public void doDiff(SVNURL url1,
SVNRevision rN,
java.io.File path2,
SVNRevision rM,
SVNDepth depth,
boolean useAncestry,
java.io.OutputStream result,
java.util.Collection<java.lang.String> changeLists)
throws SVNException
url1/
rN and path2/rM. Writes the output
of the diff to result.
If this client object uses DefaultSVNDiffGenerator and there was
a non-null
base path provided to
it, the original path and modified path will have this base path stripped
from the front of the respective paths. If the base path is not null but is not a parent path of the target,
an exception with the SVNErrorCode.BAD_RELATIVE_PATH error code
is thrown.
url1 and path2 must both represent the same
node kind -- that is, if url1 is a directory,
path2 must also be, and if url1 is a file,
path2 must also be.
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.
useAncestry controls whether or not items being diffed will
be checked for relatedness first. Unrelated items are typically
transmitted to the editor as a deletion of one thing and the addition of
another, but if this flag is true,
unrelated items will be diffed as if they were related.
If ISVNDiffGenerator.isDiffDeleted() returns true, then no diff output will be generated on
deleted files.
Generated headers are encoded using
ISVNDiffGenerator.getEncoding().
Diffs output will not be generated for binary files, unless
ISVNDiffGenerator.isForcedBinaryDiff() is true, in which case diffs will be shown
regardless of the content types.
If this client object uses DefaultSVNDiffGenerator then a caller
can set SVNDiffOptions to it which will be used to pass
additional options to the diff processes invoked to compare files.
changeLists is a collection of String
changelist names, used as a restrictive filter on items whose differences
are reported; that is, doesn't generate diffs about any item unless it's
a member of one of those changelists. If changeLists is
empty (or null), no changelist filtering
occurs.
Note: changelist filtering only applies to diffs in which at least one
side of the diff represents working copy data.
If both rM is either SVNRevision.WORKING or
SVNRevision.BASE, then it will be a url-against-wc; otherwise, a
url-against-url diff.
url1 - a repository location URLrN - a revision of url1path2 - a WC path that is to be compared against url1rM - a revision of path2depth - tree depth to processuseAncestry - if true then the paths
ancestry will be noticed while calculating differences,
otherwise notresult - the target OutputStream where the differences
will be written tochangeLists - collection with changelist names
SVNException - in the following cases:
SVNErrorCode.CLIENT_BAD_REVISION
error code - if either rN or rM is
invalid
public void doDiff(java.io.File path1,
SVNRevision rN,
java.io.File path2,
SVNRevision rM,
boolean recursive,
boolean useAncestry,
java.io.OutputStream result)
throws SVNException
doDiff(File, SVNRevision, File, SVNRevision, SVNDepth, boolean, OutputStream, Collection)
instead
If both rN and rM are local revisions (see
SVNRevision.isLocal()), then a Working Copy path2 is
compared against a Working Copy path1.
If rN is a local revision but rM is not, then
the repository location URL of path2 as it is in the
revision represented by rM is compared against the Working
Copy path1.
If rM is a local revision but rN is not, then
the Working Copy path2 is compared against the repository
location URL of path1 as it is in the revision represented
by rN.
If both rN and rM are non-local revisions, then
the repository location URL of path2 in revision
rM is compared against the repository location URL of
path1 in revision rN.
path1 - a WC pathrN - a revision of path1path2 - a WC path that is to be compared against path1rM - a revision of path2recursive - true to descend recursivelyuseAncestry - if true then the paths
ancestry will be noticed while calculating differences,
otherwise notresult - the target OutputStream where the differences
will be written to
SVNException - if one of the following is true:
rN and rM is
invalid path1 is not under version control
path1 has no URL path2 is
not under version control path2 has no URL
path1 was not
found in rN path2 was not found in rM rN and rM are local, but either
path1 does not equal path2, or
rN is not SVNRevision.BASE, or rM
is not SVNRevision.WORKING
public void doDiff(java.io.File path1,
SVNRevision rN,
java.io.File path2,
SVNRevision rM,
SVNDepth depth,
boolean useAncestry,
java.io.OutputStream result,
java.util.Collection<java.lang.String> changeLists)
throws SVNException
path1
/rN and path2/rM. Writes the
output of the diff to result.
If this client object uses DefaultSVNDiffGenerator and there was
a non-null
base path provided to
it, the original path and modified path will have this base path stripped
from the front of the respective paths. If the base path is not null but is not a parent path of the target,
an exception with the SVNErrorCode.BAD_RELATIVE_PATH error code
is thrown.
path1 and path2 must both represent the same
node kind -- that is, if path1 is a directory,
path2 must also be, and if path1 is a file,
path2 must also be.
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.
useAncestry controls whether or not items being diffed will
be checked for relatedness first. Unrelated items are typically
transmitted to the editor as a deletion of one thing and the addition of
another, but if this flag is true,
unrelated items will be diffed as if they were related.
If ISVNDiffGenerator.isDiffDeleted() returns true, then no diff output will be generated on
deleted files.
Generated headers are encoded using
ISVNDiffGenerator.getEncoding().
Diffs output will not be generated for binary files, unless
ISVNDiffGenerator.isForcedBinaryDiff() is true, in which case diffs will be shown
regardless of the content types.
If this client object uses DefaultSVNDiffGenerator then a caller
can set SVNDiffOptions to it which will be used to pass
additional options to the diff processes invoked to compare files.
changeLists is a collection of String
changelist names, used as a restrictive filter on items whose differences
are reported; that is, doesn't generate diffs about any item unless it's
a member of one of those changelists. If changeLists is
empty (or null), no changelist filtering
occurs.
Note: changelist filtering only applies to diffs in which at least one
side of the diff represents working copy data.
If both rN and rM are either
SVNRevision.WORKING or SVNRevision.BASE, then it will be
a wc-against-wc diff operation, in which case no repository access is
needed. If only rN or rM is, then it will be a
wc-against-url or url-against-wc diff correspondingly; if neither - a
url-against-url diff.
path1 - a WC pathrN - a revision of path1path2 - a WC path that is to be compared against path1rM - a revision of path2depth - tree depth to processuseAncestry - if true then the paths
ancestry will be noticed while calculating differences,
otherwise notresult - the target OutputStream where the differences
will be written tochangeLists - collection with changelist names
SVNException - in the following cases:
SVNErrorCode.CLIENT_BAD_REVISION
error code - if either rN or rM is
invalid
public void doDiffStatus(java.io.File path1,
SVNRevision rN,
java.io.File path2,
SVNRevision rM,
boolean recursive,
boolean useAncestry,
ISVNDiffStatusHandler handler)
throws SVNException
doDiffStatus(File, SVNRevision, File, SVNRevision, SVNDepth, boolean, ISVNDiffStatusHandler)
instead
path1 - the path of a left-hand item to diffrN - a revision of path1path2 - the path of a right-hand item to diffrM - a revision of path2recursive - controls whether operation must recurse or notuseAncestry - if true then the paths
ancestry will be noticed while calculating differences,
otherwise nothandler - a diff status handler
SVNException
public void doDiffStatus(java.io.File path,
SVNRevision rN,
SVNRevision rM,
SVNRevision pegRevision,
SVNDepth depth,
boolean useAncestry,
ISVNDiffStatusHandler handler)
throws SVNException
path in peg revision pegRevision, as it changed
between rN and rM.
If pegRevision is invalid,
behaves identically to
doDiffStatus(File, SVNRevision, File, SVNRevision, SVNDepth, boolean, ISVNDiffStatusHandler)
, using path for both of that method's path1
and path2 argments.
The method may report false positives if useAncestry is
false, as described in the documentation
for
doDiffStatus(File, SVNRevision, File, SVNRevision, SVNDepth, boolean, ISVNDiffStatusHandler).
Calls handler for each difference with an
SVNDiffStatus object describing the difference.
See
doDiff(File, SVNRevision, SVNRevision, SVNRevision, SVNDepth, boolean, OutputStream, Collection)
for a description of the other parameters.
path - working copy pathrN - left-hand revisionrM - right-hand revisionpegRevision - a revision in which the repository location of
path is first looked updepth - tree depth to processuseAncestry - if true then the paths
ancestry will be noticed while calculating differences,
otherwise nothandler - a diff status handler
SVNException
public void doDiffStatus(java.io.File path1,
SVNRevision rN,
java.io.File path2,
SVNRevision rM,
SVNDepth depth,
boolean useAncestry,
ISVNDiffStatusHandler handler)
throws SVNException
path1/rN and path2/rM
without creating text deltas.
The function may report false positives if ignoreAncestry is
false, since a file might have been
modified between two revisions, but still have the same contents.
Calls handler for each difference with an
SVNDiffStatus object describing the difference.
See
doDiff(File, SVNRevision, File, SVNRevision, SVNDepth, boolean, OutputStream, Collection)
for a description of the other parameters.
path1 - the path of a left-hand item to diffrN - a revision of path1path2 - the path of a right-hand item to diffrM - a revision of path2depth - tree depth to processuseAncestry - if true then the paths
ancestry will be noticed while calculating differences,
otherwise nothandler - a diff status handler
SVNException - in the following cases:
SVNErrorCode.CLIENT_BAD_REVISION
error code - if either rN or rM is
invalid exception with
SVNErrorCode.UNSUPPORTED_FEATURE error code - if
either of rM or rN is either
SVNRevision.WORKING or SVNRevision.BASE
public void doDiffStatus(java.io.File path1,
SVNRevision rN,
SVNURL url2,
SVNRevision rM,
boolean recursive,
boolean useAncestry,
ISVNDiffStatusHandler handler)
throws SVNException
doDiffStatus(File, SVNRevision, SVNURL, SVNRevision, SVNDepth, boolean, ISVNDiffStatusHandler)
instead
path1 - the path of a left-hand item to diffrN - a revision of path1url2 - the url of a right-hand item to diffrM - a revision of url2recursive - controls whether operation must recurse or notuseAncestry - if true then the paths
ancestry will be noticed while calculating differences,
otherwise nothandler - a diff status handler
SVNException
public void doDiffStatus(java.io.File path1,
SVNRevision rN,
SVNURL url2,
SVNRevision rM,
SVNDepth depth,
boolean useAncestry,
ISVNDiffStatusHandler handler)
throws SVNException
path1/rN and url2/rM
without creating text deltas.
The function may report false positives if ignoreAncestry is
false, since a file might have been
modified between two revisions, but still have the same contents.
Calls handler for each difference with an
SVNDiffStatus object describing the difference.
See
doDiff(File, SVNRevision, SVNURL, SVNRevision, SVNDepth, boolean, OutputStream, Collection)
for a description of the other parameters.
path1 - the path of a left-hand item to diffrN - a revision of path1url2 - repository url as a right-hand itemrM - a revision of url2depth - tree depth to processuseAncestry - if true then the paths
ancestry will be noticed while calculating differences,
otherwise nothandler - a diff status handler
SVNException - in the following cases:
SVNErrorCode.CLIENT_BAD_REVISION
error code - if either rN or rM is
invalid exception with
SVNErrorCode.UNSUPPORTED_FEATURE error code - if
either of rM or rN is either
SVNRevision.WORKING or SVNRevision.BASE
public void doDiffStatus(SVNURL url1,
SVNRevision rN,
java.io.File path2,
SVNRevision rM,
boolean recursive,
boolean useAncestry,
ISVNDiffStatusHandler handler)
throws SVNException
doDiffStatus(SVNURL, SVNRevision, File, SVNRevision, SVNDepth, boolean, ISVNDiffStatusHandler)
instead
url1 - the url of a left-hand item to diffrN - a revision of url1path2 - the path of a right-hand item to diffrM - a revision of path2recursive - controls whether operation must recurse or notuseAncestry - if true then the paths
ancestry will be noticed while calculating differences,
otherwise nothandler - a diff status handler
SVNException
public void doDiffStatus(SVNURL url1,
SVNRevision rN,
java.io.File path2,
SVNRevision rM,
SVNDepth depth,
boolean useAncestry,
ISVNDiffStatusHandler handler)
throws SVNException
url1/rN and path2/rM
without creating text deltas.
The function may report false positives if ignoreAncestry is
false, since a file might have been
modified between two revisions, but still have the same contents.
Calls handler for each difference with an
SVNDiffStatus object describing the difference.
See
doDiff(SVNURL, SVNRevision, File, SVNRevision, SVNDepth, boolean, OutputStream, Collection)
for a description of the other parameters.
url1 - repository url as a left-hand itemrN - a revision of url1path2 - the path of a right-hand item to diffrM - a revision of path2depth - tree depth to processuseAncestry - if true then the paths
ancestry will be noticed while calculating differences,
otherwise nothandler - a diff status handler
SVNException - in the following cases:
SVNErrorCode.CLIENT_BAD_REVISION
error code - if either rN or rM is
invalid exception with
SVNErrorCode.UNSUPPORTED_FEATURE error code - if
either of rM or rN is either
SVNRevision.WORKING or SVNRevision.BASE
public void doDiffStatus(SVNURL url1,
SVNRevision rN,
SVNURL url2,
SVNRevision rM,
boolean recursive,
boolean useAncestry,
ISVNDiffStatusHandler handler)
throws SVNException
doDiffStatus(SVNURL, SVNRevision, SVNURL, SVNRevision, SVNDepth, boolean, ISVNDiffStatusHandler)
instead
url1 - the url of a left-hand item to diffrN - a revision of url1url2 - the url of a right-hand item to diffrM - a revision of url2recursive - controls whether operation must recurse or notuseAncestry - if true then the paths
ancestry will be noticed while calculating differences,
otherwise nothandler - a diff status handler
SVNException
public void doDiffStatus(SVNURL url,
SVNRevision rN,
SVNRevision rM,
SVNRevision pegRevision,
SVNDepth depth,
boolean useAncestry,
ISVNDiffStatusHandler handler)
throws SVNException
url in peg revision pegRevision, as it changed
between rN and rM.
If pegRevision is invalid,
behaves identically to
doDiffStatus(SVNURL, SVNRevision, SVNURL, SVNRevision, SVNDepth, boolean, ISVNDiffStatusHandler)
, using url for both of that method's url1 and
url2 argments.
The method may report false positives if useAncestry is
false, as described in the documentation
for
doDiffStatus(SVNURL, SVNRevision, SVNURL, SVNRevision, SVNDepth, boolean, ISVNDiffStatusHandler).
Calls handler for each difference with an
SVNDiffStatus object describing the difference.
See
doDiff(SVNURL, SVNRevision, SVNRevision, SVNRevision, SVNDepth, boolean, OutputStream)
for a description of the other parameters.
url - repository urlrN - left-hand revisionrM - right-hand revisionpegRevision - a revision in which the repository location of
path is first looked updepth - tree depth to processuseAncestry - if true then the paths
ancestry will be noticed while calculating differences,
otherwise nothandler - a diff status handler
SVNException
public void doDiffStatus(SVNURL url1,
SVNRevision rN,
SVNURL url2,
SVNRevision rM,
SVNDepth depth,
boolean useAncestry,
ISVNDiffStatusHandler handler)
throws SVNException
url1/rN and url2/rM
without creating text deltas.
The function may report false positives if ignoreAncestry is
false, since a file might have been
modified between two revisions, but still have the same contents.
Calls handler for each difference with an
SVNDiffStatus object describing the difference.
See
doDiff(SVNURL, SVNRevision, SVNURL, SVNRevision, SVNDepth, boolean, OutputStream)
for a description of the other parameters.
url1 - the url of a left-hand item to diffrN - a revision of url1url2 - the url of a right-hand item to diffrM - a revision of url2depth - tree depth to processuseAncestry - if true then the paths
ancestry will be noticed while calculating differences,
otherwise nothandler - a diff status handler
SVNException
public void doMerge(java.io.File path1,
SVNRevision revision1,
java.io.File path2,
SVNRevision revision2,
java.io.File dstPath,
boolean recursive,
boolean useAncestry,
boolean force,
boolean dryRun)
throws SVNException
doMerge(File, SVNRevision, File, SVNRevision, File, SVNDepth, boolean, boolean, boolean, boolean)
instead
Corresponds to the SVN command line client's 'svn merge sourceWCPATH1@rev1 sourceWCPATH2@rev2 WCPATH' command.
If you need only to try merging your file(s) without actual merging, you
should set dryRun to true.
Your event handler will be dispatched status type information on the
target path(s). If a path can be successfully merged, the status type
will be SVNStatusType.MERGED for that path.
path1 - the first source pathrevision1 - a revision of path1path2 - the second source path which URL is to be compared against the
URL of path1revision2 - a revision of path2dstPath - the target path to which the result should be appliedrecursive - true to descend recursivelyuseAncestry - if true then the paths
ancestry will be noticed while calculating differences,
otherwise notforce - true to force the operation
to rundryRun - if true then only tries the
operation to run (to find out if a file can be merged
successfully)
SVNException - if one of the following is true:
revision1 and
revision2 is invalid path1 has no URL
path2 has no URL path1 was not found in revision1
path2 was not
found in revision2 dstPath is
not under version control
public void doMerge(java.io.File path1,
SVNRevision revision1,
java.io.File path2,
SVNRevision revision2,
java.io.File dstPath,
SVNDepth depth,
boolean useAncestry,
boolean force,
boolean dryRun,
boolean recordOnly)
throws SVNException
path1/revision1 to
path2/revision2 into the working-copy path
dstPath.
path1 and path2 must both represent the same
node kind - that is, if path1 is a directory,
path2 must also be, and if path1 is a file,
path2 must also be.
If depth is SVNDepth.INFINITY, merges fully
recursively. Else if SVNDepth.IMMEDIATES, merges changes at most
to files that are immediate children of dstPath and to
directory properties of dstPath and its immediate
subdirectory children. Else if SVNDepth.FILES, merges at most to
immediate file children of dstPath and to
dstPath itself. Else if SVNDepth.EMPTY, applies
changes only to dstPath (i.e., directory property changes
only).
If depth is SVNDepth.UNKNOWN, uses the depth of
dstPath.
Uses useAncestry to control whether or not items being
diffed will be checked for relatedness first. Unrelated items are
typically transmitted to the editor as a deletion of one thing and the
addition of another, but if this flag is true, unrelated items will be diffed as if
they were related.
If force is not set and the merge involves deleting locally
modified or unversioned items the operation will fail. If
force is set such items will be deleted.
merge options is used to pass arguments to the
merge processes (internal or external).
If the caller's ISVNEventHandler is not null, then it will be called once for each
merged target.
If recordOnly is true, the
merge isn't actually performed, but the mergeinfo for the revisions which
would've been merged is recorded in the working copy (and must be
subsequently committed back to the repository).
dryRun is true, the
merge is carried out, and full notification feedback is provided, but the
working copy is not modified.
Note: this method requires repository access.
path1 - left-hand working copy pathrevision1 - revision of path1path2 - right-hand working copy pathrevision2 - revision of path2dstPath - target working copy pathdepth - tree depth to processuseAncestry - if true then the paths
ancestry will be noticed while calculating differences,
otherwise notforce - true to force the operation
to rundryRun - if true then runs merge
without any file changesrecordOnly - if true, records only the
rusult of merge - mergeinfo data
SVNException - in the following cases:
SVNErrorCode.CLIENT_BAD_REVISION
error code - if either revision1 or
revision2 is invalid
exception with SVNErrorCode.ENTRY_MISSING_URL
error code - if failed to retrieve url of either path1
or path2
public void doMerge(java.io.File path1,
SVNRevision revision1,
SVNURL url2,
SVNRevision revision2,
java.io.File dstPath,
boolean recursive,
boolean useAncestry,
boolean force,
boolean dryRun)
throws SVNException
doMerge(File, SVNRevision, SVNURL, SVNRevision, File, SVNDepth, boolean, boolean, boolean, boolean)
instead
If you need only to try merging your file(s) without actual merging, you
should set dryRun to true.
Your event handler will be dispatched status type information on the
target path(s). If a path can be successfully merged, the status type
will be SVNStatusType.MERGED for that path.
path1 - the first source - a WC pathrevision1 - a revision of path1url2 - the second source - a URL that is to be compared against the
URL of path1revision2 - a revision of url2dstPath - the target path to which the result should be appliedrecursive - true to descend recursivelyuseAncestry - if true then the paths
ancestry will be noticed while calculating differences,
otherwise notforce - true to force the operation
to rundryRun - if true then only tries the
operation to run (to find out if a file can be merged
successfully)
SVNException - if one of the following is true:
revision1 and
revision2 is invalid path1 has no URL
path1 was not
found in revision1 url2 was not
found in revision2 dstPath is
not under version control
public void doMerge(java.io.File path1,
SVNRevision revision1,
SVNURL url2,
SVNRevision revision2,
java.io.File dstPath,
SVNDepth depth,
boolean useAncestry,
boolean force,
boolean dryRun,
boolean recordOnly)
throws SVNException
path1/revision1 to
url2/revision2 into the working-copy path
dstPath.
path1 and url2 must both represent the same
node kind - that is, if path1 is a directory,
url2 must also be, and if path1 is a file,
url2 must also be.
If depth is SVNDepth.INFINITY, merges fully
recursively. Else if SVNDepth.IMMEDIATES, merges changes at most
to files that are immediate children of dstPath and to
directory properties of dstPath and its immediate
subdirectory children. Else if SVNDepth.FILES, merges at most to
immediate file children of dstPath and to
dstPath itself. Else if SVNDepth.EMPTY, applies
changes only to dstPath (i.e., directory property changes
only).
If depth is SVNDepth.UNKNOWN, uses the depth of
dstPath.
Uses useAncestry to control whether or not items being
diffed will be checked for relatedness first. Unrelated items are
typically transmitted to the editor as a deletion of one thing and the
addition of another, but if this flag is true, unrelated items will be diffed as if
they were related.
If force is not set and the merge involves deleting locally
modified or unversioned items the operation will fail. If
force is set such items will be deleted.
merge options is used to pass arguments to the
merge processes (internal or external).
If the caller's ISVNEventHandler is not null, then it will be called once for each
merged target.
If recordOnly is true, the
merge isn't actually performed, but the mergeinfo for the revisions which
would've been merged is recorded in the working copy (and must be
subsequently committed back to the repository).
dryRun is true, the
merge is carried out, and full notification feedback is provided, but the
working copy is not modified.
Note: this method requires repository access.
path1 - left-hand item - working copy pathrevision1 - revision of path1url2 - right-hand item - repository urlrevision2 - revision of url2dstPath - target working copy pathdepth - tree depth to processuseAncestry - if true then the paths
ancestry will be noticed while calculating differences,
otherwise notforce - true to force the operation
to rundryRun - if true then runs merge
without any file changesrecordOnly - if true, records only the
rusult of merge - mergeinfo data
SVNException - in the following cases:
SVNErrorCode.CLIENT_BAD_REVISION
error code - if either revision1 or
revision2 is invalid
exception with SVNErrorCode.ENTRY_MISSING_URL
error code - if failed to retrieve the repository url of
path1
public void doMerge(SVNURL url1,
SVNRevision revision1,
java.io.File path2,
SVNRevision revision2,
java.io.File dstPath,
boolean recursive,
boolean useAncestry,
boolean force,
boolean dryRun)
throws SVNException
doMerge(SVNURL, SVNRevision, File, SVNRevision, File, SVNDepth, boolean, boolean, boolean, boolean)
instead
If you need only to try merging your file(s) without actual merging, you
should set dryRun to true.
Your event handler will be dispatched status type information on the
target path(s). If a path can be successfully merged, the status type
will be SVNStatusType.MERGED for that path.
url1 - the first source - a URLrevision1 - a revision of url1path2 - the second source - a WC path that is to be compared against
url1revision2 - a revision of path2dstPath - the target path to which the result should be appliedrecursive - true to descend recursivelyuseAncestry - if true then the paths
ancestry will be noticed while calculating differences,
otherwise notforce - true to force the operation
to rundryRun - if true then only tries the
operation to run (to find out if a file can be merged
successfully)
SVNException - if one of the following is true:
revision1 and
revision2 is invalid path2 has no URL
url1 was not found in revision1
path2 was not
found in revision2 dstPath is
not under version control
public void doMerge(SVNURL url1,
SVNRevision revision1,
java.io.File path2,
SVNRevision revision2,
java.io.File dstPath,
SVNDepth depth,
boolean useAncestry,
boolean force,
boolean dryRun,
boolean recordOnly)
throws SVNException
url1/revision1 to
path2/revision2 into the working-copy path
dstPath.
url1 and path2 must both represent the same
node kind - that is, if url1 is a directory,
path2 must also be, and if url1 is a file,
path2 must also be.
If depth is SVNDepth.INFINITY, merges fully
recursively. Else if SVNDepth.IMMEDIATES, merges changes at most
to files that are immediate children of dstPath and to
directory properties of dstPath and its immediate
subdirectory children. Else if SVNDepth.FILES, merges at most to
immediate file children of dstPath and to
dstPath itself. Else if SVNDepth.EMPTY, applies
changes only to dstPath (i.e., directory property changes
only).
If depth is SVNDepth.UNKNOWN, uses the depth of
dstPath.
Uses useAncestry to control whether or not items being
diffed will be checked for relatedness first. Unrelated items are
typically transmitted to the editor as a deletion of one thing and the
addition of another, but if this flag is true, unrelated items will be diffed as if
they were related.
If force is not set and the merge involves deleting locally
modified or unversioned items the operation will fail. If
force is set such items will be deleted.
merge options is used to pass arguments to the
merge processes (internal or external).
If the caller's ISVNEventHandler is not null, then it will be called once for each
merged target.
If recordOnly is true, the
merge isn't actually performed, but the mergeinfo for the revisions which
would've been merged is recorded in the working copy (and must be
subsequently committed back to the repository).
dryRun is true, the
merge is carried out, and full notification feedback is provided, but the
working copy is not modified.
Note: this method requires repository access.
url1 - left-hand item - repository urlrevision1 - revision of url1path2 - right-hand item - working copy pathrevision2 - revision of path2dstPath - target working copy pathdepth - tree depth to processuseAncestry - if true then the paths
ancestry will be noticed while calculating differences,
otherwise notforce - true to force the operation
to rundryRun - if true then runs merge
without any file changesrecordOnly - if true, records only the
rusult of merge - mergeinfo data
SVNException - in the following cases:
SVNErrorCode.CLIENT_BAD_REVISION
error code - if either revision1 or
revision2 is invalid
exception with SVNErrorCode.ENTRY_MISSING_URL
error code - if failed to retrieve the repository url of
path2
public void doMerge(SVNURL url1,
SVNRevision revision1,
SVNURL url2,
SVNRevision revision2,
java.io.File dstPath,
boolean recursive,
boolean useAncestry,
boolean force,
boolean dryRun)
throws SVNException
doMerge(SVNURL, SVNRevision, SVNURL, SVNRevision, File, SVNDepth, boolean, boolean, boolean, boolean)
instead
Corresponds to the SVN command line client's 'svn merge sourceURL1@rev1 sourceURL2@rev2 WCPATH' command.
If you need only to try merging your file(s) without actual merging, you
should set dryRun to true.
Your event handler will be dispatched status type information on the
target path(s). If a path can be successfully merged, the status type
will be SVNStatusType.MERGED for that path.
url1 - the first source URLrevision1 - a revision of url1url2 - the second source URL that is to be compared against
url1revision2 - a revision of url2dstPath - the target path to which the result should be appliedrecursive - true to descend recursivelyuseAncestry - if true then the paths
ancestry will be noticed while calculating differences,
otherwise notforce - true to force the operation
to rundryRun - if true then only tries the
operation to run (to find out if a file can be merged
successfully)
SVNException - if one of the following is true:
revision1 and
revision2 is invalid url1 was not
found in revision1 url2 was not
found in revision2 dstPath is
not under version control
public void doMerge(SVNURL url1,
SVNRevision revision1,
SVNURL url2,
SVNRevision revision2,
java.io.File dstPath,
SVNDepth depth,
boolean useAncestry,
boolean force,
boolean dryRun,
boolean recordOnly)
throws SVNException
url1/revision1 to
url2/revision2 into the working-copy path
dstPath.
url1 and url2 must both represent the same node
kind - that is, if url1 is a directory, url2
must also be, and if url1 is a file, url2 must
also be.
If depth is SVNDepth.INFINITY, merges fully
recursively. Else if SVNDepth.IMMEDIATES, merges changes at most
to files that are immediate children of dstPath and to
directory properties of dstPath and its immediate
subdirectory children. Else if SVNDepth.FILES, merges at most to
immediate file children of dstPath and to
dstPath itself. Else if SVNDepth.EMPTY, applies
changes only to dstPath (i.e., directory property changes
only).
If depth is SVNDepth.UNKNOWN, uses the depth of
dstPath.
Uses useAncestry to control whether or not items being
diffed will be checked for relatedness first. Unrelated items are
typically transmitted to the editor as a deletion of one thing and the
addition of another, but if this flag is true, unrelated items will be diffed as if
they were related.
If force is not set and the merge involves deleting locally
modified or unversioned items the operation will fail. If
force is set such items will be deleted.
merge options is used to pass arguments to the
merge processes (internal or external).
If the caller's ISVNEventHandler is not null, then it will be called once for each
merged target.
If recordOnly is true, the
merge isn't actually performed, but the mergeinfo for the revisions which
would've been merged is recorded in the working copy (and must be
subsequently committed back to the repository).
If dryRun is true, the
merge is carried out, and full notification feedback is provided, but the
working copy is not modified.
Note: this method requires repository access.
url1 - left-hand repository urlrevision1 - revision of url1url2 - right-hand repository urlrevision2 - revision of url2dstPath - target working copy pathdepth - tree depth to processuseAncestry - if true then the paths
ancestry will be noticed while calculating differences,
otherwise notforce - true to force the operation
to rundryRun - if true then runs merge
without any file changesrecordOnly - if true, records only the
rusult of merge - mergeinfo data
SVNException - in the following cases:
SVNErrorCode.CLIENT_BAD_REVISION
error code - if either revision1 or
revision2 is invalid
public void doMerge(SVNURL url1,
SVNRevision pegRevision,
SVNRevision revision1,
SVNRevision revision2,
java.io.File dstPath,
boolean recursive,
boolean useAncestry,
boolean force,
boolean dryRun)
throws SVNException
doMerge(SVNURL, SVNRevision, Collection, File, SVNDepth, boolean, boolean, boolean, boolean)
instead
Corresponds to the SVN command line client's 'svn merge -r rev1:rev2 URL@pegRev WCPATH' command.
If you need only to try merging your file(s) without actual merging, you
should set dryRun to true.
Your event handler will be dispatched status type information on the
target path(s). If a path can be successfully merged, the status type
will be SVNStatusType.MERGED for that path.
url1 - a source URLpegRevision - a revision in which code>url1 is first looked uprevision1 - a left-hand revision of url1revision2 - a right-hand revision of url1dstPath - the target path to which the result should be appliedrecursive - true to descend recursivelyuseAncestry - if true then the paths
ancestry will be noticed while calculating differences,
otherwise notforce - true to force the operation
to rundryRun - if true then only tries the
operation to run (to find out if a file can be merged
successfully)
SVNException - if one of the following is true:
revision1, revision2
and pegRevision is invalid
url1 was not found in revision1 url1 was not found in revision2
dstPath is not under version control
public void doMerge(SVNURL url1,
SVNRevision pegRevision,
java.util.Collection<SVNRevisionRange> rangesToMerge,
java.io.File dstPath,
SVNDepth depth,
boolean useAncestry,
boolean force,
boolean dryRun,
boolean recordOnly)
throws SVNException
url1 in peg revision
pegRevision, as it changed between the ranges described in
rangesToMerge.
rangesToMerge is a collection of SVNRevisionRange
ranges. These ranges may describe additive and/or subtractive merge
ranges, they may overlap fully or partially, and/or they may partially or
fully negate each other. This rangelist is not required to be sorted.
All other options are handled identically to
doMerge(SVNURL, SVNRevision, SVNURL, SVNRevision, File, SVNDepth, boolean, boolean, boolean, boolean).
Note: this method requires repository access.
url1 - a source URLpegRevision - a revision in which url1 is first looked uprangesToMerge - collection of revision ranges to mergedstPath - target working copy pathdepth - tree depth to processuseAncestry - if true then the paths
ancestry will be noticed while calculating differences,
otherwise notforce - true to force the operation
to rundryRun - if true then only tries the
operation to run (to find out if a file can be merged
successfully)recordOnly -
SVNException - in the following cases:
SVNErrorCode.CLIENT_BAD_REVISION
- If any revision in the list of provided ranges is
invalid
public void doMerge(java.io.File path1,
SVNRevision pegRevision,
SVNRevision revision1,
SVNRevision revision2,
java.io.File dstPath,
boolean recursive,
boolean useAncestry,
boolean force,
boolean dryRun)
throws SVNException
doMerge(File, SVNRevision, Collection, File, SVNDepth, boolean, boolean, boolean, boolean)
instead
Corresponds to the SVN command line client's 'svn merge -r rev1:rev2 sourceWCPATH@pegRev WCPATH' command.
If you need only to try merging your file(s) without actual merging, you
should set dryRun to true.
Your event handler will be dispatched status type information on the
target path(s). If a path can be successfully merged, the status type
will be SVNStatusType.MERGED for that path.
path1 - a source WC pathpegRevision - a revision in which the repository location of
path1 is first looked uprevision1 - a left-hand revision of path1revision2 - a right-hand revision of path1dstPath - the target path to which the result should be appliedrecursive - true to descend recursivelyuseAncestry - if true then the paths
ancestry will be noticed while calculating differences,
otherwise notforce - true to force the operation
to rundryRun - if true then only tries the
operation to run (to find out if a file can be merged
successfully)
SVNException - if one of the following is true:
revision1, revision2
and pegRevision is invalid
path1 has no URL
path1 was not found in revision1 path1 was not found in
revision2 dstPath is not under
version control
public void doMerge(java.io.File path1,
SVNRevision pegRevision,
java.util.Collection<SVNRevisionRange> rangesToMerge,
java.io.File dstPath,
SVNDepth depth,
boolean useAncestry,
boolean force,
boolean dryRun,
boolean recordOnly)
throws SVNException
path1 in peg revision
pegRevision, as it changed between the ranges described in
rangesToMerge.
rangesToMerge is a collection of SVNRevisionRange
ranges. These ranges may describe additive and/or subtractive merge
ranges, they may overlap fully or partially, and/or they may partially or
fully negate each other. This rangelist is not required to be sorted.
All other options are handled identically to
doMerge(File, SVNRevision, File, SVNRevision, File, SVNDepth, boolean, boolean, boolean, boolean).
Note: this method requires repository access.
path1 - working copy pathpegRevision - a revision in which path1 is first looked uprangesToMerge - collection of revision ranges to mergedstPath - target working copy pathdepth - tree depth to processuseAncestry - if true then the paths
ancestry will be noticed while calculating differences,
otherwise notforce - true to force the operation
to rundryRun - if true then only tries the
operation to run (to find out if a file can be merged
successfully)recordOnly -
SVNException - in the following cases:
SVNErrorCode.CLIENT_BAD_REVISION
- If any revision in the list of provided ranges is
invalid
public boolean isAllowMixedRevisionsWCForMerge()
public void doMergeReIntegrate(java.io.File srcPath,
SVNRevision pegRevision,
java.io.File dstPath,
boolean dryRun)
throws SVNException
srcPath at
pegRevision into dstPath.
dstPath must be a single-revision, SVNDepth.INFINITY
, pristine, unswitched working copy -- in other words, it must reflect a
single revision tree, the "target". The mergeinfo on srcPath
must reflect that all of the target has been merged into it.
This kind of merge should be used for back merging (for example, merging
branches back to trunk, in which case merge is carried out by comparing
the latest trunk tree with the latest branch tree; i.e. the resulting
difference is excatly the branch changes which will go back to trunk).
All other options are handled identically to
doMerge(File, SVNRevision, File, SVNRevision, File, SVNDepth, boolean, boolean, boolean, boolean)
. The depth of the merge is always SVNDepth.INFINITY.
If pegRevision is null or
invalid, then it defaults to
SVNRevision.WORKING.
Note: this method requires repository access.
srcPath - working copy pathpegRevision - a revision in which srcPath is first looked updstPath - target working copy pathdryRun - if true then only tries the
operation to run (to find out if a file can be merged
successfully)
SVNException
public void doMergeReIntegrate(SVNURL srcURL,
SVNRevision pegRevision,
java.io.File dstPath,
boolean dryRun)
throws SVNException
srcURL at
pegRevision into dstPath.
dstPath must be a single-revision, SVNDepth.INFINITY
, pristine, unswitched working copy -- in other words, it must reflect a
single revision tree, the "target". The mergeinfo on srcPath
must reflect that all of the target has been merged into it.
This kind of merge should be used for back merging (for example, merging
branches back to trunk, in which case merge is carried out by comparing
the latest trunk tree with the latest branch tree; i.e. the resulting
difference is excatly the branch changes which will go back to trunk).
All other options are handled identically to
doMerge(SVNURL, SVNRevision, SVNURL, SVNRevision, File, SVNDepth, boolean, boolean, boolean, boolean)
. The depth of the merge is always SVNDepth.INFINITY.
If pegRevision is null or
invalid, then it defaults to
SVNRevision.HEAD.
Note: this method requires repository access.
srcURL - repository urlpegRevision - a revision in which srcURL is first looked updstPath - target working copy pathdryRun - if true then only tries the
operation to run (to find out if a file can be merged
successfully)
SVNException
public void doGetLogMergedMergeInfo(java.io.File path,
SVNRevision pegRevision,
SVNURL mergeSrcURL,
SVNRevision srcPegRevision,
boolean discoverChangedPaths,
java.lang.String[] revisionProperties,
ISVNLogEntryHandler handler)
throws SVNException
handler with the revisions merged from
mergeSrcURL (as of srcPegRevision) into
path (as of pegRevision).
discoverChangedPaths and revisionProperties are
the same as for
SVNLogClient.doLog(File[], SVNRevision, SVNRevision, SVNRevision, boolean, boolean, boolean, long, String[], ISVNLogEntryHandler).
Note: this routine requires repository access.
path - working copy path (merge target)pegRevision - a revision in which path is first looked upmergeSrcURL - merge source repository urlsrcPegRevision - a revision in which mergeSrcURL is first looked
updiscoverChangedPaths - true to report of all changed
paths for every revision being processed (those paths will be
available by calling
SVNLogEntry.getChangedPaths())revisionProperties - names of revision properties to retrievehandler - the caller's log entry handler
SVNException - in the following cases:
SVNErrorCode.UNSUPPORTED_FEATURE
error code - if the server doesn't support retrieval of
mergeinfo
public void doGetLogMergedMergeInfo(SVNURL url,
SVNRevision pegRevision,
SVNURL mergeSrcURL,
SVNRevision srcPegRevision,
boolean discoverChangedPaths,
java.lang.String[] revisionProperties,
ISVNLogEntryHandler handler)
throws SVNException
handler with the revisions merged from
mergeSrcURL (as of srcPegRevision) into
url (as of pegRevision).
discoverChangedPaths and revisionProperties are
the same as for
SVNLogClient.doLog(File[], SVNRevision, SVNRevision, SVNRevision, boolean, boolean, boolean, long, String[], ISVNLogEntryHandler).
Note: this routine requires repository access.
url - repository url (merge target)pegRevision - a revision in which url is first looked upmergeSrcURL - merge source repository urlsrcPegRevision - a revision in which mergeSrcURL is first looked
updiscoverChangedPaths - true to report of all changed
paths for every revision being processed (those paths will be
available by calling
SVNLogEntry.getChangedPaths())revisionProperties - names of revision properties to retrievehandler - the caller's log entry handler
SVNException - in the following cases:
SVNErrorCode.UNSUPPORTED_FEATURE
error code - if the server doesn't support retrieval of
mergeinfo
public void doGetLogMergedMergeInfo(java.io.File path,
SVNRevision pegRevision,
java.io.File mergeSrcPath,
SVNRevision srcPegRevision,
boolean discoverChangedPaths,
java.lang.String[] revisionProperties,
ISVNLogEntryHandler handler)
throws SVNException
handler with the revisions merged from
mergeSrcPath (as of srcPegRevision) into
path (as of pegRevision).
discoverChangedPaths and revisionProperties are
the same as for
SVNLogClient.doLog(File[], SVNRevision, SVNRevision, SVNRevision, boolean, boolean, boolean, long, String[], ISVNLogEntryHandler).
Note: this routine requires repository access.
path - working copy path (merge target)pegRevision - a revision in which path is first looked upmergeSrcPath - merge source working copy pathsrcPegRevision - a revision in which mergeSrcPath is first looked
updiscoverChangedPaths - true to report of all changed
paths for every revision being processed (those paths will be
available by calling
SVNLogEntry.getChangedPaths())revisionProperties - names of revision properties to retrievehandler - the caller's log entry handler
SVNException - in the following cases:
SVNErrorCode.UNSUPPORTED_FEATURE
error code - if the server doesn't support retrieval of
mergeinfo
public void doGetLogMergedMergeInfo(SVNURL url,
SVNRevision pegRevision,
java.io.File mergeSrcPath,
SVNRevision srcPegRevision,
boolean discoverChangedPaths,
java.lang.String[] revisionProperties,
ISVNLogEntryHandler handler)
throws SVNException
handler with the revisions merged from
mergeSrcPath (as of srcPegRevision) into
url (as of pegRevision).
discoverChangedPaths and revisionProperties are
the same as for
SVNLogClient.doLog(File[], SVNRevision, SVNRevision, SVNRevision, boolean, boolean, boolean, long, String[], ISVNLogEntryHandler).
Note: this routine requires repository access.
url - repository url (merge target)pegRevision - a revision in which url is first looked upmergeSrcPath - merge source working copy pathsrcPegRevision - a revision in which mergeSrcPath is first looked
updiscoverChangedPaths - true to report of all changed
paths for every revision being processed (those paths will be
available by calling
SVNLogEntry.getChangedPaths())revisionProperties - names of revision properties to retrievehandler - the caller's log entry handler
SVNException - in the following cases:
SVNErrorCode.UNSUPPORTED_FEATURE
error code - if the server doesn't support retrieval of
mergeinfo
public void doGetLogEligibleMergeInfo(java.io.File path,
SVNRevision pegRevision,
SVNURL mergeSrcURL,
SVNRevision srcPegRevision,
boolean discoverChangedPaths,
java.lang.String[] revisionProperties,
ISVNLogEntryHandler handler)
throws SVNException
handler with the revisions eligible for
merge from mergeSrcURL (as of srcPegRevision)
into path (as of pegRevision).
discoverChangedPaths and revisionProperties are
the same as for
SVNLogClient.doLog(File[], SVNRevision, SVNRevision, SVNRevision, boolean, boolean, boolean, long, String[], ISVNLogEntryHandler).
Note: this routine requires repository access.
path - working copy path (merge target)pegRevision - a revision in which path is first looked upmergeSrcURL - merge source repository urlsrcPegRevision - a revision in which mergeSrcURL is first looked
updiscoverChangedPaths - true to report of all changed
paths for every revision being processed (those paths will be
available by calling
SVNLogEntry.getChangedPaths())revisionProperties - names of revision properties to retrievehandler - the caller's log entry handler
SVNException - in the following cases:
SVNErrorCode.UNSUPPORTED_FEATURE
error code - if the server doesn't support retrieval of
mergeinfo
public void doGetLogEligibleMergeInfo(SVNURL url,
SVNRevision pegRevision,
SVNURL mergeSrcURL,
SVNRevision srcPegRevision,
boolean discoverChangedPaths,
java.lang.String[] revisionProperties,
ISVNLogEntryHandler handler)
throws SVNException
handler with the revisions eligible for
merge from mergeSrcURL (as of srcPegRevision)
into url (as of pegRevision).
discoverChangedPaths and revisionProperties are
the same as for
SVNLogClient.doLog(File[], SVNRevision, SVNRevision, SVNRevision, boolean, boolean, boolean, long, String[], ISVNLogEntryHandler).
Note: this routine requires repository access.
url - repository url (merge target)pegRevision - a revision in which url is first looked upmergeSrcURL - merge source repository urlsrcPegRevision - a revision in which mergeSrcURL is first looked
updiscoverChangedPaths - true to report of all changed
paths for every revision being processed (those paths will be
available by calling
SVNLogEntry.getChangedPaths())revisionProperties - names of revision properties to retrievehandler - the caller's log entry handler
SVNException - in the following cases:
SVNErrorCode.UNSUPPORTED_FEATURE
error code - if the server doesn't support retrieval of
mergeinfo
public void doGetLogEligibleMergeInfo(java.io.File path,
SVNRevision pegRevision,
java.io.File mergeSrcPath,
SVNRevision srcPegRevision,
boolean discoverChangedPaths,
java.lang.String[] revisionProperties,
ISVNLogEntryHandler handler)
throws SVNException
handler with the revisions eligible for
merge from mergeSrcPath (as of srcPegRevision)
into path (as of pegRevision).
discoverChangedPaths and revisionProperties are
the same as for
SVNLogClient.doLog(File[], SVNRevision, SVNRevision, SVNRevision, boolean, boolean, boolean, long, String[], ISVNLogEntryHandler).
Note: this routine requires repository access.
path - working copy path (merge target)pegRevision - a revision in which path is first looked upmergeSrcPath - merge source working copy pathsrcPegRevision - a revision in which mergeSrcPath is first looked
updiscoverChangedPaths - true to report of all changed
paths for every revision being processed (those paths will be
available by calling
SVNLogEntry.getChangedPaths())revisionProperties - names of revision properties to retrievehandler - the caller's log entry handler
SVNException - in the following cases:
SVNErrorCode.UNSUPPORTED_FEATURE
error code - if the server doesn't support retrieval of
mergeinfo
public void doGetLogEligibleMergeInfo(SVNURL url,
SVNRevision pegRevision,
java.io.File mergeSrcPath,
SVNRevision srcPegRevision,
boolean discoverChangedPaths,
java.lang.String[] revisionProperties,
ISVNLogEntryHandler handler)
throws SVNException
handler with the revisions eligible for
merge from mergeSrcPath (as of srcPegRevision)
into url (as of pegRevision).
discoverChangedPaths and revisionProperties are
the same as for
SVNLogClient.doLog(File[], SVNRevision, SVNRevision, SVNRevision, boolean, boolean, boolean, long, String[], ISVNLogEntryHandler).
Note: this routine requires repository access.
url - repository url (merge target)pegRevision - a revision in which url is first looked upmergeSrcPath - merge source working copy pathsrcPegRevision - a revision in which mergeSrcPath is first looked
updiscoverChangedPaths - true to report of all changed
paths for every revision being processed (those paths will be
available by calling
SVNLogEntry.getChangedPaths())revisionProperties - names of revision properties to retrievehandler - the caller's log entry handler
SVNException - in the following cases:
SVNErrorCode.UNSUPPORTED_FEATURE
error code - if the server doesn't support retrieval of
mergeinfo
public java.util.Map<SVNURL,SVNMergeRangeList> doGetMergedMergeInfo(java.io.File path,
SVNRevision pegRevision)
throws SVNException
Map with merge source URLs (as
SVNURL) mapped to range lists (SVNMergeRangeList). Range
lists are objects containing arrays of ranges
describing the ranges which have been merged into path as of
pegRevision. If there is no mergeinfo, returns null.
Note: unlike most APIs which deal with mergeinfo, this one returns data
where the keys of the map are absolute repository URLs rather than
repository filesystem paths.
Note: this routine requires repository access.
path - working copy pathpegRevision - a revision in which path is first looked up
path
SVNException - in the following cases:
SVNErrorCode.UNSUPPORTED_FEATURE
error code - if the server doesn't support retrieval of
mergeinfo (which will never happen for file:// URLs)
public java.util.Map<SVNURL,SVNMergeRangeList> doGetMergedMergeInfo(SVNURL url,
SVNRevision pegRevision)
throws SVNException
Map with merge source URLs (as
SVNURL) mapped to range lists (SVNMergeRangeList). Range
lists are objects containing arrays of ranges
describing the ranges which have been merged into url as of
pegRevision. If there is no mergeinfo, returns null.
Note: unlike most APIs which deal with mergeinfo, this one returns data
where the keys of the map are absolute repository URLs rather than
repository filesystem paths.
Note: this routine requires repository access.
url - repository urlpegRevision - a revision in which url is first looked up
url
SVNException - in the following cases:
SVNErrorCode.UNSUPPORTED_FEATURE
error code - if the server doesn't support retrieval of
mergeinfo (which will never happen for file:// URLs)
public java.util.Collection<SVNURL> doSuggestMergeSources(java.io.File path,
SVNRevision pegRevision)
throws SVNException
URLs) for path at
pegRevision.
path - working copy pathpegRevision - a revision in which path is first looked up
path
SVNException
public java.util.Collection<SVNURL> doSuggestMergeSources(SVNURL url,
SVNRevision pegRevision)
throws SVNException
URLs) for url at
pegRevision.
url - repository urlpegRevision - a revision in which url is first looked up
url
SVNException
public void doPatch(java.io.File absPatchPath,
java.io.File localAbsPath,
boolean dryRun,
int stripCount)
throws SVNException
SVNExceptionpublic void setAllowMixedRevisionsWCForMerge(boolean allowMixedRevisions)
public boolean isShowCopiesAsAdds()
public void setShowCopiesAsAdds(boolean showCopiesAsAdds)
public boolean isGitDiffFormat()
public void setGitDiffFormat(boolean gitDiffFormat)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||