~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/remote.py

Merge format deprecation fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
492
492
        self._custom_format = None
493
493
        self._network_name = None
494
494
        self._creating_bzrdir = None
495
 
        self._is_deprecated = None
496
495
        self._supports_chks = None
497
496
        self._supports_external_lookups = None
498
497
        self._supports_tree_reference = None
537
536
                self._custom_format.supports_tree_reference
538
537
        return self._supports_tree_reference
539
538
 
540
 
    def is_deprecated(self):
541
 
        if self._is_deprecated is None:
542
 
            self._ensure_real()
543
 
            self._is_deprecated = self._custom_format.is_deprecated()
544
 
        return self._is_deprecated
545
 
 
546
539
    def _vfs_initialize(self, a_bzrdir, shared):
547
540
        """Helper for common code in initialize."""
548
541
        if self._custom_format:
1005
998
    def is_write_locked(self):
1006
999
        return self._lock_mode == 'w'
1007
1000
 
 
1001
    def _warn_if_deprecated(self, branch=None):
 
1002
        # If we have a real repository, the check will be done there, if we
 
1003
        # don't the check will be done remotely.
 
1004
        pass
 
1005
 
1008
1006
    def lock_read(self):
1009
1007
        """Lock the repository for read operations.
1010
1008