/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 bzrlib/tree.py

Add a tree-test for get_symlink_target
and implement it in DirStateRevisionTree.

Show diffs side-by-side

added added

removed removed

Lines of Context:
183
183
    def get_file_by_path(self, path):
184
184
        return self.get_file(self._inventory.path2id(path))
185
185
 
 
186
    def get_symlink_target(self, file_id):
 
187
        """Get the target for a given file_id.
 
188
 
 
189
        It is assumed that the caller already knows that file_id is referencing
 
190
        a symlink.
 
191
        :param file_id: Handle for the symlink entry.
 
192
        :return: The path the symlink points to.
 
193
        """
 
194
        raise NotImplementedError(self.get_symlink_target)
 
195
 
186
196
    def annotate_iter(self, file_id):
187
197
        """Return an iterator of revision_id, line tuples
188
198