discovery: simplify the building of the children mapping
Since we only care about the revisions inside the set we are sampling, we can
use simpler code (and probably sightly faster).
#require docutils gettext $ $TESTDIR/check-gendoc sv checking for parse errors