def addRepo(self, username, reponame):
    """
    Adds a new repo to gitolite.
    returns true iff successfully added repo to config
    """

    repo_data = self.__load_repo()

    repo = username + '/' + reponame
    if repo in repo_data:
      return False

    repo_data[repo] = [( 'RW+', username )]

    self.__save_repo(repo_data)

    return True
dataset/ETHPy150Open smailq/gitolite-manager/gitolite_manager/gitolite.py/Gitolite.addRepo/original