~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/inventory.py

  • Committer: Robey Pointer
  • Date: 2006-09-03 00:28:18 UTC
  • mfrom: (1981 +trunk)
  • mto: This revision was merged to the branch mainline in revision 1996.
  • Revision ID: robey@lag.net-20060903002818-71ca5c7bfea93a26
merge from bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
325
325
 
326
326
    @staticmethod
327
327
    def versionable_kind(kind):
328
 
        return kind in ('file', 'directory', 'symlink')
 
328
        return (kind in ('file', 'directory', 'symlink'))
329
329
 
330
330
    def check(self, checker, rev_id, inv, tree):
331
331
        """Check this inventory entry is intact.
1215
1215
        return bool(self.path2id(names))
1216
1216
 
1217
1217
    def has_id(self, file_id):
1218
 
        return file_id in self._byid
 
1218
        return (file_id in self._byid)
1219
1219
 
1220
1220
    def rename(self, file_id, new_parent_id, new_name):
1221
1221
        """Move a file within the inventory.