~ubuntu-branches/debian/jessie/bzr-git/jessie

« back to all changes in this revision

Viewing changes to tree.py

  • Committer: Package Import Robot
  • Author(s): Jelmer Vernooij
  • Date: 2011-12-15 19:06:37 UTC
  • mfrom: (1.1.25)
  • Revision ID: package-import@ubuntu.com-20111215190637-cd1n2iathdjg1u97
Tags: 0.6.6-1
* Use DEP5 format for copyright file.
* New upstream release.
 + Copes with new `possible_transports` argument for Branch.open added in
   bzr 2.5b4. Closes: #652178
 + Copes with removal of global options in bzr 2.5b4. LP: #903639
 + Fixes support for directories in `bzr add`. LP: #894195

Show diffs side-by-side

added added

removed removed

Lines of Context:
220
220
        else:
221
221
            return ""
222
222
 
 
223
    def get_symlink_target(self, file_id, path=None):
 
224
        """See RevisionTree.get_symlink_target."""
 
225
        if path is None:
 
226
            path = self.id2path(file_id)
 
227
        (mode, hexsha) = tree_lookup_path(self.store.__getitem__, self.tree, path)
 
228
        if stat.S_ISLNK(mode):
 
229
            return self.store[hexsha].data
 
230
        else:
 
231
            return None
 
232
 
223
233
    def _comparison_data(self, entry, path):
224
234
        if entry is None:
225
235
            return None, False, None