upgrade: walk the source store file only once
I don't expect this to have a significant performance impact, but it seems
simpler and saner to do the operation only once and to keep the result around.
#require docutils gettext $ $TESTDIR/check-gendoc fr checking for parse errors