~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/workingtree.py

  • Committer: Scott James Remnant
  • Date: 2005-10-10 06:57:08 UTC
  • mto: This revision was merged to the branch mainline in revision 1436.
  • Revision ID: scott@netsplit.com-20051010065708-7ebaebe2717cc0a4
Fix WorkingTree.get_symlink_target() to read the absolute path of the
symlink, not the relative; so we can do things outside of the root
directory.

Show diffs side-by-side

added added

removed removed

Lines of Context:
185
185
            return bool(stat.S_ISREG(mode) and stat.S_IEXEC&mode)
186
186
 
187
187
    def get_symlink_target(self, file_id):
188
 
        return os.readlink(self.id2path(file_id))
 
188
        return os.readlink(self.id2abspath(file_id))
189
189
 
190
190
    def file_class(self, filename):
191
191
        if self.path2id(filename):