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

Merge repository-format-deprecation branch.

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
495
496
        self._supports_chks = None
496
497
        self._supports_external_lookups = None
497
498
        self._supports_tree_reference = None
536
537
                self._custom_format.supports_tree_reference
537
538
        return self._supports_tree_reference
538
539
 
 
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
 
539
546
    def _vfs_initialize(self, a_bzrdir, shared):
540
547
        """Helper for common code in initialize."""
541
548
        if self._custom_format:
998
1005
    def is_write_locked(self):
999
1006
        return self._lock_mode == 'w'
1000
1007
 
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
 
 
1006
1008
    def lock_read(self):
1007
1009
        """Lock the repository for read operations.
1008
1010