def create_repo(self, path, branch_name='integration', repo_name=None):
     if not repo_name:
         repo_name = "tuenti-ng"
     full_path = os.path.join(path, repo_name)
     os.mkdir(full_path)
     hglib.init(full_path)
     repo = hglib.open(full_path)
     repo.branch(branch_name)
     commits = ['initial commit', 'second commit', 'third commit']
     files = ['f1', 'f2', 'f3', 'f4']
     self.commit_in_repo(full_path, files, commits)
     repo.close()
     return full_path
 def create_repo(self, path, branch_name='integration', repo_name=None):
     if not repo_name:
         repo_name = "tuenti-ng"
     full_path = os.path.join(path, repo_name)
     os.mkdir(full_path)
     hglib.init(full_path)
     repo = hglib.open(full_path)
     repo.branch(branch_name)
     commits = ['initial commit', 'second commit', 'third commit']
     files = ['f1', 'f2', 'f3', 'f4']
     self.commit_in_repo(full_path, files, commits)
     repo.close()
     return full_path
 def init_depot(self, path, parent=None, source=None):
     """ Inherited method
     :func:`~repoman.depot_operations.DepotOperations.init_depot`
     """
     try:
         logger.info('Initializing Depot %s with parent %s' % (
             path, parent))
         result = hglib.init(dest=path)
         if result:
             result = self.get_depot_from_path(path, parent)
             logger.info('Done initializing Depot.')
     except Exception:
         logger.exception('Error Initializing Depot.')
         result = False
     return result
 def init_depot(self, path, parent=None, source=None):
     """ Inherited method
     :func:`~repoman.depot_operations.DepotOperations.init_depot`
     """
     try:
         logger.info('Initializing Depot %s with parent %s' %
                     (path, parent))
         result = hglib.init(dest=path)
         if result:
             result = self.get_depot_from_path(path, parent)
             logger.info('Done initializing Depot.')
     except Exception:
         logger.exception('Error Initializing Depot.')
         result = False
     return result
 def create_repo(self, name):
     return hglib.init(os.path.join(self.environment_path, name))