~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/vf_repository.py

  • Committer: Jonathan Riddell
  • Date: 2011-09-07 14:01:16 UTC
  • mfrom: (6123.1.10 +trunk)
  • mto: This revision was merged to the branch mainline in revision 6131.
  • Revision ID: jriddell@canonical.com-20110907140116-azlrje93tz406cul
mergeĀ inĀ trunk

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)
921
924
        if self.is_locked():
922
925
            # This repository will call fallback.unlock() when we transition to
923
926
            # the unlocked state, so we make sure to increment the lock count
924
927
            repository.lock_read()
925
 
        self._check_fallback_repository(repository)
926
928
        self._fallback_repositories.append(repository)
927
929
        self.texts.add_fallback_versioned_files(repository.texts)
928
930
        self.inventories.add_fallback_versioned_files(repository.inventories)