This is rather slow (1 m 45 s on my laptop), but since it'd be only used once per release, maybe this doesn't matter that much. Output is identical to ids-update.pl with the set of source files committed in the grandparent.