jetbrains.buildServer.vcs
Interface VcsChangeInfo

All Known Subinterfaces:
VcsFileModification
All Known Implementing Classes:
FilteredVcsChange, VcsChange

public interface VcsChangeInfo

Presents information about file change in version control modification


Nested Class Summary
static class VcsChangeInfo.ContentType
          Type of file content requested for file change
static class VcsChangeInfo.Type
          Type of file change
 
Method Summary
 java.lang.String getAfterChangeRevisionNumber()
          Revision number of the file after the change.
 java.lang.String getBeforeChangeRevisionNumber()
          Revision number of the file before the change.
 java.lang.String getChangeTypeName()
           
 java.lang.String getFileName()
           
 java.lang.String getRelativeFileName()
          Returns the relative name of this file.
 VcsChangeInfo.Type getType()
           
 

Method Detail

getChangeTypeName

@Nullable
java.lang.String getChangeTypeName()
Returns:
human readable change type name

getFileName

@NotNull
java.lang.String getFileName()
Returns:
whole file name

getRelativeFileName

@NotNull
java.lang.String getRelativeFileName()
Returns the relative name of this file. Note: the result path can be be mapped (i.e. takes into account checkout rules) or not depending on how this object has been acquired.

Returns:
relative to vcs root file name

getType

@NotNull
VcsChangeInfo.Type getType()
Returns:
change type

getBeforeChangeRevisionNumber

@Nullable
java.lang.String getBeforeChangeRevisionNumber()
Revision number of the file before the change. This revision may or may not be the same as version returned by VcsSupportCore.getCurrentVersion(VcsRoot) method. This revision is shown in the web UI only and it should have some meaningful value for users. Also this revision may help VCS plugin to obtain file content, see VcsFileContentProvider

Returns:
revision number before the change

getAfterChangeRevisionNumber

@Nullable
java.lang.String getAfterChangeRevisionNumber()
Revision number of the file after the change. See also getBeforeChangeRevisionNumber().

Returns:
revision number after the change