~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/vf_repository.py

  • Committer: Jelmer Vernooij
  • Date: 2011-09-04 21:41:05 UTC
  • mto: This revision was merged to the branch mainline in revision 6127.
  • Revision ID: jelmer@samba.org-20110904214105-uconiohsax3u25u6
removeĀ unusedĀ imports.

Show diffs side-by-side

added added

removed removed

Lines of Context:
918
918
        """
919
919
        if not self._format.supports_external_lookups:
920
920
            raise errors.UnstackableRepositoryFormat(self._format, self.base)
921
 
        # This can raise an exception, so should be done before we lock the
922
 
        # fallback repository.
923
 
        self._check_fallback_repository(repository)
924
921
        if self.is_locked():
925
922
            # This repository will call fallback.unlock() when we transition to
926
923
            # the unlocked state, so we make sure to increment the lock count
927
924
            repository.lock_read()
 
925
        self._check_fallback_repository(repository)
928
926
        self._fallback_repositories.append(repository)
929
927
        self.texts.add_fallback_versioned_files(repository.texts)
930
928
        self.inventories.add_fallback_versioned_files(repository.inventories)