add VCSRepo.empty method
add test cases for empty repos
fix HgRepo.tags method when repo is empty