scm: mercurial: fix diff and test for accept both of revision number and changeset id (#3724).
Diff of changeset can be wrong if the previous changeset isn't the parent.
Authored by: tmaruyama 2011-01-08
Parent: [r4661]
Child: [r4663]