See #23701 (dist): Support for revert multiple changesets in Remote Control (patch by TrickyFoxy, modified)