Improved mercurial repository check methods.