~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/remote.py

  • Committer: Aaron Bentley
  • Date: 2008-12-03 05:09:44 UTC
  • mto: This revision was merged to the branch mainline in revision 3892.
  • Revision ID: aaron@aaronbentley.com-20081203050944-biuf61wbttr0wrzv
Allow miss caching to be disabled.

Show diffs side-by-side

added added

removed removed

Lines of Context:
544
544
        if not self._lock_mode:
545
545
            self._lock_mode = 'r'
546
546
            self._lock_count = 1
547
 
            self._unstacked_provider.enable_cache()
 
547
            self._unstacked_provider.enable_cache(cache_misses=False)
548
548
            if self._real_repository is not None:
549
549
                self._real_repository.lock_read()
550
550
        else:
584
584
                self._leave_lock = False
585
585
            self._lock_mode = 'w'
586
586
            self._lock_count = 1
587
 
            self._unstacked_provider.enable_cache()
 
587
            self._unstacked_provider.enable_cache(cache_misses=False)
588
588
        elif self._lock_mode == 'r':
589
589
            raise errors.ReadOnlyError(self)
590
590
        else: