[tools resubmit] testbot/PatchUtils: Rework GetPatchImpacts() to fix patchset handling.