amend: do not drop missing files (issue5732)
samefile() can be wrong since wctx.manifest() does not include missing files,
whereas missing files should be preserved on commit.
#require docutils gettext $ $TESTDIR/check-gendoc da checking for parse errors