def test_from_repo(self):
     where = self.buffer.location
     items = []
     for repo_path in meu.find_repositories_below(
             os.path.join(where, "a-repo")):
         items.append(self._check_path_and_fix(repo_path, where))
     self.assertEqual(items,  [meu.pycompat.bytestr(x) for x in [
         "/xxx/a-repo",
     ]])
 def test_std(self):
     where = self.buffer.location
     items = []
     for repo_path in meu.find_repositories_below(where):
         items.append(self._check_path_and_fix(repo_path, where))
     self.assertEqual(items, [meu.pycompat.bytestr(x) for x in [
         "/xxx/a-repo",
         "/xxx/b/b1-repo",
         "/xxx/b/b2-repo",
         "/xxx/b/b3/b3a-repo",
         "/xxx/b/b3/b3b-repo",
         "/xxx/c/c1/c11-repo",
     ]])
import mercurial_extension_utils as meu

#for repo_path in meu.find_repositories_below("~/DEV_hg/mercurial"):
for repo_path in meu.find_repositories_below("~/DEV_hg"):
    print repo_path