/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/revisiontree.py

  • Committer: Martin Pool
  • Date: 2007-10-08 07:29:57 UTC
  • mfrom: (2894 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2895.
  • Revision ID: mbp@sourcefrog.net-20071008072957-uhm1gl1mqcsdc377
merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
142
142
    def kind(self, file_id):
143
143
        return self._inventory[file_id].kind
144
144
 
 
145
    def path_content_summary(self, path):
 
146
        """See Tree.path_content_summary."""
 
147
        id = self.inventory.path2id(path)
 
148
        if id is None:
 
149
            return ('missing', None, None, None)
 
150
        entry = self._inventory[id]
 
151
        kind = entry.kind
 
152
        if kind == 'file':
 
153
            return (kind, entry.text_size, entry.executable, entry.text_sha1)
 
154
        elif kind == 'symlink':
 
155
            return (kind, None, None, entry.symlink_target)
 
156
        else:
 
157
            return (kind, None, None, None)
 
158
 
145
159
    def _comparison_data(self, entry, path):
146
160
        if entry is None:
147
161
            return None, False, None