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

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2008-12-11 17:46:47 UTC
  • mfrom: (3835.1.20 remote-stacking-graph)
  • Revision ID: pqm@pqm.ubuntu.com-20081211174647-l45s6xsw669ovgsa
Raise if CachingParentsProvider.enable_cache used wrongly (abentley)

Show diffs side-by-side

added added

removed removed

Lines of Context:
134
134
 
135
135
    def enable_cache(self, cache_misses=True):
136
136
        """Enable cache."""
 
137
        if self._cache is not None:
 
138
            raise AssertionError('Cache enabled when already enabled.')
137
139
        self._cache = {}
138
140
        self._cache_misses = cache_misses
139
141
        if self._debug: