예제 #1
0
    def get_tags(self, repository, revnum, project=None):
        """Retrieve a list of paths that refer to tags in a specific revision.

        :return: Iterator over tuples with (project, branch path)
        """
        return get_root_paths(repository, [self._add_project("tags", project)],
                              revnum, self.is_tag, project)
예제 #2
0
    def get_branches(self, repository, revnum, project=None):
        """Retrieve a list of paths that refer to branches in a specific revision.

        :return: Iterator over tuples with (project, branch path)
        """
        return get_root_paths(repository, self.branches, revnum,
                              self.is_branch, project)
예제 #3
0
    def get_branches(self, repository, revnum, project=None):
        """Return a list of paths that refer to branches in a specific revision.

        :return: Iterator over tuples with (project, branch path)
        """
        return get_root_paths(
            repository,
            [self._add_project(x, project)
             for x in ["branches", "trunk"]], revnum, self.is_branch, project)
예제 #4
0
파일: base.py 프로젝트: jelmer/breezy-svn
 def get_tags(self, repository, revnum, project=None):
     return get_root_paths(repository, self.scheme.tag_list, revnum,
                           self.scheme.is_tag, project)
예제 #5
0
파일: base.py 프로젝트: jelmer/breezy-svn
 def get_branches(self, repository, revnum, project=None):
     return get_root_paths(repository, self.scheme.branch_list, revnum,
                           self.scheme.is_branch, project)