|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjetbrains.buildServer.vcs.VcsChange
public class VcsChange
Presents change of one file on the modification
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface jetbrains.buildServer.vcs.VcsChangeInfo |
|---|
VcsChangeInfo.ContentType, VcsChangeInfo.Type |
| Constructor Summary | |
|---|---|
|
VcsChange(VcsChangeInfo.Type type,
java.lang.String fileName,
java.lang.String relativeFileName,
java.lang.String beforeNum,
java.lang.String afterNum)
Creates new VcsChange instance with default change name. |
|
VcsChange(VcsChangeInfo.Type type,
java.lang.String changeName,
java.lang.String fileName,
java.lang.String relativeFileName,
java.lang.String beforeNum,
java.lang.String afterNum)
Creates new VcsChange instance. |
protected |
VcsChange(VcsChangeInfo source)
|
| Method Summary | |
|---|---|
static java.util.List<VcsChange> |
createList(java.util.Collection<? extends VcsChangeInfo> source)
Converts list of change info to the corresponding changes |
boolean |
equals(java.lang.Object o)
|
static VcsChange |
forTest()
|
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()
|
int |
hashCode()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public VcsChange(@NotNull
VcsChangeInfo.Type type,
@Nullable
java.lang.String changeName,
@NotNull
java.lang.String fileName,
@NotNull
java.lang.String relativeFileName,
java.lang.String beforeNum,
java.lang.String afterNum)
type - change type. Can be one of 4 kinds. Based on this type files in change are shown in corresponding colour.changeName - string representation of the change kind. Should be in human readable format. If the value is null
description from the type will be used.fileName - VcsSupport has to be able to deal with this path, return file content by specified VcsChange.relativeFileName - string representation of the file in repository. Should be 1) relative to VcsRoot and 2) human readable.beforeNum - file revision before the change. Can be repository version before change.afterNum - file revision after the change. Can be repository version after change.
public VcsChange(@NotNull
VcsChangeInfo.Type type,
@NotNull
java.lang.String fileName,
@NotNull
java.lang.String relativeFileName,
java.lang.String beforeNum,
java.lang.String afterNum)
type - change type. Can be one of 4 kinds. Based on this type files in change are shown in corresponding colour.fileName - VcsSupport has to be able to deal with this path, return file content by specified VcsChange.relativeFileName - string representation of the file in repository. Should be 1) relative to VcsRoot and 2) human readable.beforeNum - file revision before the change. Can be repository version before change.afterNum - file revision after the change. Can be repository version after change.
protected VcsChange(@NotNull
VcsChangeInfo source)
| Method Detail |
|---|
public static java.util.List<VcsChange> createList(@Nullable
java.util.Collection<? extends VcsChangeInfo> source)
source - list to convert
public static VcsChange forTest()
@Nullable public java.lang.String getChangeTypeName()
getChangeTypeName in interface VcsChangeInfo@NotNull public java.lang.String getFileName()
getFileName in interface VcsChangeInfo@NotNull public java.lang.String getRelativeFileName()
VcsChangeInfo
getRelativeFileName in interface VcsChangeInfo@NotNull public VcsChangeInfo.Type getType()
getType in interface VcsChangeInfopublic java.lang.String getBeforeChangeRevisionNumber()
VcsChangeInfoVcsSupportCore.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
getBeforeChangeRevisionNumber in interface VcsChangeInfopublic java.lang.String getAfterChangeRevisionNumber()
VcsChangeInfoVcsChangeInfo.getBeforeChangeRevisionNumber().
getAfterChangeRevisionNumber in interface VcsChangeInfopublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||