The Bug:
/advancement grant and /advancement revoke count advancements that were already granted or revoked.
The message shown by /advancement grant and /advancement revoke only counts the players whose advancements are changed, and the command fails when nothing is changed at all (MC-123068). However, when only some of the selected advancements are changed, the message still counts every selected advancement, therefore introducing an inconsistency.
Steps to Reproduce:
Revoke the "Stone Age" advancement by using the command provided below.
/advancement revoke @s only minecraft:story/mine_stoneGrant yourself the "Minecraft" advancement by using the command provided below.
/advancement grant @s only minecraft:story/rootGrant yourself the "Stone Age" advancement and all of the advancements before it by using the command provided below.
/advancement grant @s until minecraft:story/mine_stoneObserve if the message in chat says that 2 advancements were granted.
Observed Behavior:
/advancement grant and /advancement revoke count advancements that were already granted or revoked.
Expected Behavior:
/advancement grant and /advancement revoke would only count the advancements that they change.