コード例 #1
0
def git_id(crt_series, rev):
    """Return the GIT id
    """
    # TODO: remove this function once all the occurrences were converted
    # to git_commit()
    repository = StackRepository.default()
    return git_commit(rev, repository, crt_series.name).sha1
コード例 #2
0
 def setup(self):
     # This will throw an exception if we don't have a repository.
     self.repository = StackRepository.default()
コード例 #3
0
def default_repo():
    return StackRepository.default()