~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/revisiontree.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-05-13 16:59:44 UTC
  • mfrom: (5858.1.1 symlink-target-path)
  • Revision ID: pqm@pqm.ubuntu.com-20110513165944-rv579ds1kciopi4n
(jelmer) Add optional path argument to Tree.get_symlink_target(). (Jelmer
 Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
142
142
        for path, entry in entries:
143
143
            yield path, 'V', entry.kind, entry.file_id, entry
144
144
 
145
 
    def get_symlink_target(self, file_id):
 
145
    def get_symlink_target(self, file_id, path=None):
146
146
        ie = self._inventory[file_id]
147
147
        # Inventories store symlink targets in unicode
148
148
        return ie.symlink_target