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