Exemplo n.º 1
0
 def is_type(cls, path):
     try:
         hg("root", repo=path)
     except:
         return False
     return True
Exemplo n.º 2
0
 def __init__(self, root=None):
     if root is None:
         root = hg("root").strip()
     self.root = root
     self.hg = vcs.bind_to_repo(hg, self.root)