/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 versionedfiles.py

Fix support for older versions of Dulwich.

Show diffs side-by-side

added added

removed removed

Lines of Context:
94
94
            root_tree = self.object_store[commit_id].tree
95
95
            path = mapping.parse_file_id(fileid)
96
96
            try:
97
 
                (mode, item_id) = tree_lookup_path(
 
97
                obj = tree_lookup_path(
98
98
                    self.object_store.__getitem__, root_tree, path)
99
 
                obj = self.object_store[item_id]
 
99
                if isinstance(obj, tuple):
 
100
                    (mode, item_id) = obj
 
101
                    obj = self.object_store[item_id]
100
102
            except KeyError:
101
103
                yield AbsentContentFactory(key)
102
104
            else: