/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to tree.py

Implement GitRevisionTree.kind.

Show diffs side-by-side

added added

removed removed

Lines of Context:
71
71
            return False
72
72
        return self.has_filename(path)
73
73
 
 
74
    def kind(self, file_id, path=None):
 
75
        if path is None:
 
76
            file_id = self.path2id(path)
 
77
        (mode, hexsha) = tree_lookup_path(self.store.__getitem__, self.tree, path)
 
78
        return mode_kind(mode)
 
79
 
74
80
    def has_filename(self, path):
75
81
        try:
76
82
            tree_lookup_path(self.store.__getitem__, self.tree,