~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 02:10:02 UTC
  • mto: (1393.1.30)
  • mto: This revision was merged to the branch mainline in revision 1400.
  • Revision ID: robertc@robertcollins.net-20051003021002-4bf750e1d2bf7149
move checks for versionability of file kinds into InventoryEntry

Show diffs side-by-side

added added

removed removed

Lines of Context:
172
172
        l.sort()
173
173
        return l
174
174
 
 
175
    @staticmethod
 
176
    def versionable_kind(kind):
 
177
        return kind in ('file', 'directory', 'symlink')
 
178
 
175
179
    def check(self, checker, rev_id, inv, tree):
176
180
        if self.parent_id != None:
177
181
            if not inv.has_id(self.parent_id):