/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/xml5.py

  • Committer: John Arbash Meinel
  • Date: 2008-12-10 22:39:43 UTC
  • mto: This revision was merged to the branch mainline in revision 3912.
  • Revision ID: john@arbash-meinel.com-20081210223943-aqedq91tf7e6tecs
Use resize logic to ensure our inventory entry cache is at an optimal size.

We don't want to cache all entries across all inventories, but we are okay caching a
bit more than would fit in one total inventory.

Show diffs side-by-side

added added

removed removed

Lines of Context:
74
74
            byid[ie.file_id] = ie
75
75
        if revision_id is not None:
76
76
            inv.root.revision = revision_id
 
77
        self._check_cache_size(len(inv))
77
78
        return inv
78
79
 
79
80
    def _check_revisions(self, inv):