~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tree.py

  • Committer: Ian Clatworthy
  • Date: 2009-05-19 00:20:46 UTC
  • mto: (4376.1.1 integration)
  • mto: This revision was merged to the branch mainline in revision 4377.
  • Revision ID: ian.clatworthy@canonical.com-20090519002046-qfxrlf4d73upe1h8
apply jam's review feedback

Show diffs side-by-side

added added

removed removed

Lines of Context:
202
202
            specific_file_ids=specific_file_ids)
203
203
 
204
204
    def iter_references(self):
205
 
        for path, entry in self.iter_entries_by_dir():
206
 
            if entry.kind == 'tree-reference':
207
 
                yield path, entry.file_id
 
205
        if self.supports_tree_reference():
 
206
            for path, entry in self.iter_entries_by_dir():
 
207
                if entry.kind == 'tree-reference':
 
208
                    yield path, entry.file_id
208
209
 
209
210
    def kind(self, file_id):
210
211
        raise NotImplementedError("Tree subclass %s must implement kind"