This fixes a bug that Chris Mason found. As for a test case, I can't
think of one. It's a very weird case. Basically, if there is a file
listed as changed in the changelog entry, but not showing up in any
of the associated manifest entries, hg would abort when trying to
create a changeset. Now it just decides the file must not have any
versions relevant to the changeset.
Copy manifest map before modifying it (see
issue86)
fix for hgweb.filterfiles
some variable weren't converted, fix a possible out of range error