ReceivePack: enable overriding filterCommands and executeCommands
Change-Id: Ib923e137f0fadd876434bcc49ebd0c9a4d90b45c Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
This commit is contained in:
parent
8ada9048c5
commit
fc7b003163
|
@ -1725,15 +1725,17 @@ private void failPendingCommands() {
|
||||||
* desired status to filter by.
|
* desired status to filter by.
|
||||||
* @return a copy of the command list containing only those commands with
|
* @return a copy of the command list containing only those commands with
|
||||||
* the desired status.
|
* the desired status.
|
||||||
|
* @since 5.7
|
||||||
*/
|
*/
|
||||||
private List<ReceiveCommand> filterCommands(Result want) {
|
protected List<ReceiveCommand> filterCommands(Result want) {
|
||||||
return ReceiveCommand.filter(commands, want);
|
return ReceiveCommand.filter(commands, want);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Execute commands to update references.
|
* Execute commands to update references.
|
||||||
|
* @since 5.7
|
||||||
*/
|
*/
|
||||||
private void executeCommands() {
|
protected void executeCommands() {
|
||||||
List<ReceiveCommand> toApply = filterCommands(Result.NOT_ATTEMPTED);
|
List<ReceiveCommand> toApply = filterCommands(Result.NOT_ATTEMPTED);
|
||||||
if (toApply.isEmpty())
|
if (toApply.isEmpty())
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue