Fixing mercural repo detect in test
Added mercurial detect to template class
Mercurial VCS class