checkfiles needs unittests!

Issue #7 open
Marcus Lindblom Sonestedt
repo owner created an issue

I'm getting patches, fixes and pull requests, but it's hard (for me) to verify that correct behaviour is preserved.

Also, the current code base needs some refactoring, as it's grown a fair bit since the initial version.

Using the existing mercurial test framework is desired, so any tests should re-use that. (By requiring that hg-stable is checked out to ..\hg-stable or somesuch scheme)