|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.tmatesoft.svn.core.wc.SVNMergeFileSet
public class SVNMergeFileSet
The SVNMergeFileSet class holds information about the file that is to be merged.
This information includes references to File
objects with working, base, repository contents;
file mimeType; labels to append to the file name to produce conflict files in case a merge fails with a
conflict, and so on.
Constructor Summary | |
---|---|
SVNMergeFileSet(org.tmatesoft.svn.core.internal.wc.admin.SVNAdminArea adminArea,
org.tmatesoft.svn.core.internal.wc.admin.SVNLog log,
java.io.File baseFile,
java.io.File localFile,
java.lang.String wcPath,
java.io.File reposFile,
java.io.File resultFile,
java.io.File copyFromFile,
java.lang.String mimeType)
Creates a new SVNMergeFileSet object given the data prepared for
merging a file. |
Method Summary | |
---|---|
void |
dispose()
Disposes this object. |
org.tmatesoft.svn.core.internal.wc.admin.SVNAdminArea |
getAdminArea()
Returns the admin area which controls the file. |
java.io.File |
getBaseFile()
Returns the file containing the pristine file contents. |
java.lang.String |
getBaseLabel()
Returns the base file label. |
java.lang.String |
getBasePath()
Returns the base file path. |
java.io.File |
getCopyFromFile()
Returns the file which is the copy source for the file being merged. |
java.lang.String |
getCopyFromPath()
Returns the copy source path. |
java.io.File |
getLocalFile()
Returns the detranslated working copy file. |
java.lang.String |
getLocalLabel()
Returns the local file label. |
java.lang.String |
getLocalPath()
Returns the path of the detranslated version of the working copy file. |
org.tmatesoft.svn.core.internal.wc.admin.SVNLog |
getLog()
Returns the log object. |
java.lang.String |
getMimeType()
Returns the mime type of the file. |
java.io.File |
getRepositoryFile()
Returns the repository version of the file. |
java.lang.String |
getRepositoryLabel()
Returns the repository file label. |
java.lang.String |
getRepositoryPath()
Returns the path to the file containing the contents of the repository version of the file. |
java.io.File |
getResultFile()
Returns the file where the merged resultant text is written to. |
java.lang.String |
getResultPath()
Returns the path of the file where the merged resultant text is written to. |
java.io.File |
getWCFile()
Returns the working copy file as it presents in the working copy. |
java.lang.String |
getWCPath()
Returns the path of the working copy file. |
boolean |
isBinary()
Tells whether this file is binary or textual. |
void |
setMergeLabels(java.lang.String baseLabel,
java.lang.String localLabel,
java.lang.String repositoryLabel)
Sets the labels for conflict files. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SVNMergeFileSet(org.tmatesoft.svn.core.internal.wc.admin.SVNAdminArea adminArea, org.tmatesoft.svn.core.internal.wc.admin.SVNLog log, java.io.File baseFile, java.io.File localFile, java.lang.String wcPath, java.io.File reposFile, java.io.File resultFile, java.io.File copyFromFile, java.lang.String mimeType)
SVNMergeFileSet
object given the data prepared for
merging a file.
Note: This is intended for internal use only, not for API users.
adminArea
- admin area the file is controlled underlog
- log objectbaseFile
- file with pristine contentslocalFile
- file with translated working contentswcPath
- working copy path relative to the location of adminArea
reposFile
- file contents from the repositoryresultFile
- file where the resultant merged contents will be written tocopyFromFile
- contents of the copy source file (if any)mimeType
- file mime typeMethod Detail |
---|
public void setMergeLabels(java.lang.String baseLabel, java.lang.String localLabel, java.lang.String repositoryLabel)
baseLabel
is null,
".old" will be set by default.
If localLabel
is null,
".working" will be set by default.
If repositoryLabel
is null,
".new" will be set by default.
baseLabel
- base file labellocalLabel
- working file labelrepositoryLabel
- repository file labelpublic org.tmatesoft.svn.core.internal.wc.admin.SVNLog getLog()
public java.lang.String getBaseLabel()
public java.lang.String getLocalLabel()
public java.lang.String getRepositoryLabel()
public java.lang.String getBasePath() throws SVNException
base file
is located under the
admin area
, then the return path will be just a relevant to the admin area path
of the base file. Otherwise (in case the repository file is located not under the admin area) this
method will create a temporary file in the .svn/tmp
area of the admin area and copy the
contents of the base file into it; the return path will be again relative to the location of
the admin area.
SVNException
public java.lang.String getLocalPath()
admin area
locationpublic java.lang.String getWCPath()
admin area
locationpublic java.lang.String getRepositoryPath() throws SVNException
repository file
is located under the
admin area
, then the return path will be just a relevant to the admin area path
of the repository file. Otherwise (in case the repository file is located not under the admin area) this
method will create a temporary file in the .svn/tmp
area of the admin area and copy the
contents of the repository file into it; the return path will be again relative to the location of
the admin area.
SVNException
public java.lang.String getResultPath()
admin area
locationpublic java.io.File getBaseFile()
public java.io.File getWCFile()
public java.io.File getLocalFile()
public java.io.File getRepositoryFile()
public java.io.File getResultFile()
public boolean isBinary()
mime type
.
public java.lang.String getMimeType()
public org.tmatesoft.svn.core.internal.wc.admin.SVNAdminArea getAdminArea()
public void dispose() throws SVNException
SVNException
public java.io.File getCopyFromFile()
public java.lang.String getCopyFromPath()
admin area
location
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |