~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/branch.py

  • Committer: John Arbash Meinel
  • Date: 2005-07-12 04:38:52 UTC
  • mto: (1185.11.1)
  • mto: This revision was merged to the branch mainline in revision 1396.
  • Revision ID: john@arbash-meinel.com-20050712043852-caa52e4d9bd09259
Renaming is_remote to should_cache as it is more appropriate.

Show diffs side-by-side

added added

removed removed

Lines of Context:
361
361
        # So create the rest of the entries.
362
362
        from bzrlib.store import CompressedTextStore
363
363
 
364
 
        if self._transport.is_remote():
 
364
        if self._transport.should_cache():
365
365
            import tempfile
366
366
            self.cache_root = tempfile.mkdtemp(prefix='bzr-cache')
367
367
            mutter('Branch %r using caching in %r' % (self, self.cache_root))
371
371
        def get_store(name):
372
372
            relpath = self._rel_controlfilename(name)
373
373
            store = CompressedTextStore(self._transport.clone(relpath))
374
 
            if self._transport.is_remote():
 
374
            if self._transport.should_cache():
375
375
                from meta_store import CachedStore
376
376
                cache_path = os.path.join(self.cache_root, name)
377
377
                os.mkdir(cache_path)