Merged r6247 from trunk.
scm: mercurial: add functional test of destroying invalid repository.
Authored by: tmaruyama 2011-07-11
Parent: [r6254]
Child: [r6256]