Package sonia.scm.repository.api
Class ModificationsCommandBuilder
java.lang.Object
sonia.scm.repository.api.ModificationsCommandBuilder
Get the modifications applied to files in a revision.
Modifications are for example: Add, Update and Delete
- Since:
- 2.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbaseRevision
(String baseRevision) Set this to compute the modifications between two revisions.Computes the modifications.reset()
Reset each parameter to its default value.Set this to compute either the midifications of the given revision, or additionally setbaseRevision(String)
to compute the modifications between this and the other revision.
-
Constructor Details
-
ModificationsCommandBuilder
public ModificationsCommandBuilder()
-
-
Method Details
-
revision
Set this to compute either the midifications of the given revision, or additionally setbaseRevision(String)
to compute the modifications between this and the other revision.- Returns:
- This command builder.
-
baseRevision
Set this to compute the modifications between two revisions. If this is not set, only the modifications of the revision set byrevision(String)
will be computed. This is only supported by repositories supporting the featureFeature.MODIFICATIONS_BETWEEN_REVISIONS
.- Parameters:
baseRevision
- If set, the command will compute the modifications between this revision and the revision set byrevision(String)
.- Returns:
- This command builder.
- Since:
- 2.23.0
-
reset
Reset each parameter to its default value.- Returns:
this
-
getModifications
Computes the modifications.- Throws:
IOException
-