~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/branch.py

  • Committer: Robert Collins
  • Date: 2005-10-04 04:38:48 UTC
  • mfrom: (1400.1.1)
  • Revision ID: robertc@robertcollins.net-20051004043848-d65bb5f9d435fbb3
unbreak http branch operations

Show diffs side-by-side

added added

removed removed

Lines of Context:
156
156
        """Subclasses that care about caching should override this, and set
157
157
        up cached stores located under cache_root.
158
158
        """
 
159
        self.cache_root = cache_root
159
160
 
160
161
 
161
162
class _Branch(Branch):
242
243
                store = CompressedTextStore(self._transport.clone(relpath))
243
244
            else:
244
245
                store = TextStore(self._transport.clone(relpath))
245
 
            if self._transport.should_cache():
246
 
                from meta_store import CachedStore
247
 
                cache_path = os.path.join(self.cache_root, name)
248
 
                os.mkdir(cache_path)
249
 
                store = CachedStore(store, cache_path)
 
246
            #if self._transport.should_cache():
 
247
            #    cache_path = os.path.join(self.cache_root, name)
 
248
            #    os.mkdir(cache_path)
 
249
            #    store = bzrlib.store.CachedStore(store, cache_path)
250
250
            return store
251
251
        def get_weave(name):
252
252
            relpath = self._rel_controlfilename(name)