~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/inventory.py

  • Committer: Robert Collins
  • Date: 2005-10-03 05:27:22 UTC
  • mto: (1393.1.30)
  • mto: This revision was merged to the branch mainline in revision 1400.
  • Revision ID: robertc@robertcollins.net-20051003052722-d9358fdec7f250d7
move checking whether an entry stores text into inventory.py from fetch,py

Show diffs side-by-side

added added

removed removed

Lines of Context:
184
184
                else:
185
185
                    print >>output_to, '=== target is %r' % self.symlink_target
186
186
 
 
187
    def has_text(self):
 
188
        """Return true if the object this entry represents has textual data.
 
189
 
 
190
        Note that textual data includes binary content.
 
191
        """
 
192
        if self.kind =='file':
 
193
            return True
 
194
        else:
 
195
            return False
 
196
 
187
197
    def __init__(self, file_id, name, kind, parent_id, text_id=None):
188
198
        """Create an InventoryEntry
189
199