public class SVNFileRevision
extends java.lang.Object
implements java.lang.Comparable
When getting a range of file revisions (in particular, annotating),
calling an SVNRepository's
getFileRevision()
SVNFileRevision objects are passed to an ISVNFileRevisionHandler's openRevision()
method.
SVNRepository
,
ISVNFileRevisionHandler
Constructor and Description |
---|
SVNFileRevision(java.lang.String path,
long revision,
SVNProperties properties,
SVNProperties propertiesDelta)
Constructs an instance of SVNFileRevision.
|
SVNFileRevision(java.lang.String path,
long revision,
SVNProperties properties,
SVNProperties propertiesDelta,
boolean isResultOfMerge)
Constructs an instance of SVNFileRevision.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(java.lang.Object o)
Compares this object with another one.
|
java.lang.String |
getPath()
Gets the file path (relative to a repository root URL).
|
SVNProperties |
getProperties()
Deprecated.
use
getRevisionProperties() instead |
SVNProperties |
getPropertiesDelta()
Returns file properties for this file (for this revision).
|
long |
getRevision()
Gets the revision of the file.
|
SVNProperties |
getRevisionProperties()
Returns revision properties.
|
boolean |
isResultOfMerge()
Tells whether this file revision is the result of a merge.
|
public SVNFileRevision(java.lang.String path, long revision, SVNProperties properties, SVNProperties propertiesDelta)
path
- a file path relative to a repository location
(a URL used to create an
SVNRepository to access a repository)revision
- a revision of the fileproperties
- revision propertiespropertiesDelta
- file properties for the revision
public SVNFileRevision(java.lang.String path, long revision, SVNProperties properties, SVNProperties propertiesDelta, boolean isResultOfMerge)
path
- a file path relative to a repository location
(a URL used to create an
SVNRepository to access a repository)revision
- a revision of the fileproperties
- revision propertiespropertiesDelta
- file properties for the revision
isResultOfMerge
- whether this revision of the file is the result of a mergepublic java.lang.String getPath()
SVNRepository
public SVNProperties getProperties()
getRevisionProperties()
insteadSVNRevisionProperty
constants (they are revision property names) to retrieve values of the
corresponding properties.public SVNProperties getRevisionProperties()
SVNRevisionProperty
constants (they are revision property names) to retrieve values of the
corresponding properties.public SVNProperties getPropertiesDelta()
public long getRevision()
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
o
- an object to compare witho
is either null,
or is not an instance of SVNFileRevision, or the revision value of
this object is bigger than the one of o
;
o
;
o
are the same (equal)
public boolean isResultOfMerge()
Copyright © 2004-2012 TMate Software Ltd. All Rights Reserved.