Package sonia.scm.repository.spi
Interface ModificationsCommand
public interface ModificationsCommand
Command to get the modifications applied to files in a revision.
Modifications are for example: Add, Update, Delete
- Since:
- 2.0
-
Method Summary
Modifier and TypeMethodDescriptiongetModifications
(String revision) Read the modifications for a single revision.default Modifications
getModifications
(String baseRevision, String revision) Read the modifications between two revisions.default Modifications
Execute the givenModificationsCommandRequest
.
-
Method Details
-
getModifications
Read the modifications for a single revision.- Throws:
IOException
-
getModifications
Read the modifications between two revisions. The result is similar to a diff between these two revisions, but without details about the content.
Make sure your repository supports the featureFeature.MODIFICATIONS_BETWEEN_REVISIONS
, because otherwise this will throw aFeatureNotSupportedException
.- Throws:
FeatureNotSupportedException
- if the repository type does not support the featureFeatureNotSupportedException
.IOException
- Since:
- 2.23.0
-
getModifications
Execute the givenModificationsCommandRequest
.- Throws:
IOException
-