Logo Search packages:      
Sourcecode: qbzr version File versions

def qbzr::lib::loggraphprovider::LogGraphProvider::open_branch (   self,
  branch,
  file_id = None,
  tree = None 
)

Open branch and fileids to be loaded. 

Definition at line 170 of file loggraphprovider.py.

00170                                                           :
        """Open branch and fileids to be loaded. """
        
        repo = branch.repository
        if not tree:
            try:
                tree = branch.bzrdir.open_workingtree()
            except errors.NoWorkingTree:
                pass
        self.append_repo(repo)
        self.append_branch(tree, branch)
        
        if file_id:
            self.fileids.append(file_id)
            if not self.has_dir:
                if tree is None:
                    kind = branch.basis_tree().kind(file_id)
                else:
                    kind = tree.kind(file_id)
                if kind in ('directory', 'tree-reference'):
                    self.has_dir = True
        
        if len(self.branches())==1 and self.trunk_branch == None:
            self.trunk_branch = branch
    
    def open_locations(self, locations):


Generated by  Doxygen 1.6.0   Back to index