Package jetbrains.vcs.api
Interface ChangeData
-
- All Superinterfaces:
CommitData
- All Known Implementing Classes:
ModificationData
public interface ChangeData extends CommitData
This interface represents a change collected from the repository.- Since:
- 8.0 `
- Author:
- kir
- See Also:
CollectChangesService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Map<String,String>
getAttributes()
List<VcsChange>
getChanges()
String
getDescription()
String
getDisplayVersion()
List<String>
getParentRevisions()
String
getUserName()
Date
getVcsDate()
VcsRoot
getVcsRoot()
Get VcsRoot, associated with the change.String
getVersion()
boolean
isCanBeIgnored()
-
-
-
Method Detail
-
getUserName
@Nullable String getUserName()
- Returns:
- VCS user name
-
getVersion
@NotNull String getVersion()
- Specified by:
getVersion
in interfaceCommitData
- Returns:
- VCS revision (internal representation)
-
getDisplayVersion
@NotNull String getDisplayVersion()
- Specified by:
getDisplayVersion
in interfaceCommitData
- Returns:
- VCS revision (displayable representation)
-
getDescription
@Nullable String getDescription()
- Returns:
- VCS commit message
-
getVcsDate
@NotNull Date getVcsDate()
- Specified by:
getVcsDate
in interfaceCommitData
- Returns:
- VCS change date
-
getParentRevisions
@NotNull List<String> getParentRevisions()
- Specified by:
getParentRevisions
in interfaceCommitData
- Returns:
- parent revisions of this change, returns an empty list if VCS does not provide information about parents.
- Since:
- 7.0
-
getAttributes
@NotNull Map<String,String> getAttributes()
- Specified by:
getAttributes
in interfaceCommitData
- Returns:
- attributes of this change
- Since:
- 8.0
-
isCanBeIgnored
boolean isCanBeIgnored()
- Returns:
- true if this change can be ignored (i.e. is not registered in the system). Usually change can be safely ignored if all its files are excluded by checkout rules, however there are cases when it is not true.
-
getVcsRoot
@NotNull VcsRoot getVcsRoot()
Get VcsRoot, associated with the change.
-
-