919
919
if not self._format.supports_external_lookups:
920
920
raise errors.UnstackableRepositoryFormat(self._format, self.base)
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
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)