~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/branch.py

  • Committer: Martin Pool
  • Date: 2005-07-15 23:35:18 UTC
  • Revision ID: mbp@sourcefrog.net-20050715233518-04217797d302244f
- optimization for Inventory.id2path; access byid map directly rather than 
  through the __getitem__ on the inventory; rather faster

Show diffs side-by-side

added added

removed removed

Lines of Context:
361
361
            # ElementTree does its own conversion from UTF-8, so open in
362
362
            # binary.
363
363
            inv = unpack_xml(Inventory,
364
 
                             self.controlfile('inventory', 'rb'))
 
364
                                  self.controlfile('inventory', 'rb'))
365
365
            mutter("loaded inventory of %d items in %f"
366
366
                   % (len(inv), time() - before))
367
367
            return inv
806
806
        True
807
807
        """
808
808
        from bzrlib.progress import ProgressBar
 
809
        try:
 
810
            set
 
811
        except NameError:
 
812
            from sets import Set as set
809
813
 
810
814
        pb = ProgressBar()
811
815