~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/branch.py

  • Committer: Robert Collins
  • Date: 2005-10-03 14:47:12 UTC
  • mto: (1393.1.30)
  • mto: This revision was merged to the branch mainline in revision 1400.
  • Revision ID: robertc@robertcollins.net-20051003144712-44b3339bd5cfcf69
factor out file related logic from InventoryEntry to InventoryFile

Show diffs side-by-side

added added

removed removed

Lines of Context:
663
663
                continue
664
664
            if kind == 'directory':
665
665
                inv.add(inventory.InventoryDirectory(file_id, name, parent))
 
666
            elif kind == 'file':
 
667
                inv.add(inventory.InventoryFile(file_id, name, parent))
666
668
            else:
667
669
                inv.add(InventoryEntry(file_id, name, kind, parent))
668
670
        self._write_inventory(inv)