/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/lru_cache.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-11-26 20:18:50 UTC
  • mfrom: (2998.2.3 push_packs_to_knits)
  • Revision ID: pqm@pqm.ubuntu.com-20071126201850-7bugi709x0jjfqpg
(John Arbash Meinel) Change pushing from a pack-repo to a knit-repo
        to not rebuild the full history of effected knits.

Show diffs side-by-side

added added

removed removed

Lines of Context:
69
69
            # Trigger the cleanup
70
70
            self.cleanup()
71
71
 
 
72
    def get(self, key, default=None):
 
73
        if key in self._cache:
 
74
            return self[key]
 
75
        return default
 
76
 
72
77
    def cleanup(self):
73
78
        """Clear the cache until it shrinks to the requested size.
74
79