~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tree.py

  • Committer: Jelmer Vernooij
  • Date: 2011-05-14 21:16:04 UTC
  • mfrom: (5861 +trunk)
  • mto: This revision was merged to the branch mainline in revision 5863.
  • Revision ID: jelmer@samba.org-20110514211604-cxcvynog8js68qlx
Merge bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
359
359
            cur_file = (self.get_file_text(file_id),)
360
360
            yield identifier, cur_file
361
361
 
362
 
    def get_symlink_target(self, file_id):
 
362
    def get_symlink_target(self, file_id, path=None):
363
363
        """Get the target for a given file_id.
364
364
 
365
365
        It is assumed that the caller already knows that file_id is referencing
366
366
        a symlink.
367
367
        :param file_id: Handle for the symlink entry.
 
368
        :param path: The path of the file.
 
369
        If both file_id and path are supplied, an implementation may use
 
370
        either one.
368
371
        :return: The path the symlink points to.
369
372
        """
370
373
        raise NotImplementedError(self.get_symlink_target)
371
374
 
372
 
 
373
375
    def get_root_id(self):
374
376
        """Return the file_id for the root of this tree."""
375
377
        raise NotImplementedError(self.get_root_id)