We don't need a special class for an already locally located repository. Both Mercurial and Git can clone from it when specifying the local path as source url.