def _repo_exists(self, repository_name):

        user_repos = Repository.objects.all_repositores(user=self.user)
        if not self.edit: # if a new object is being created we check for it's name uniqeness.
            if len(user_repos) > 0:
                return len(user_repos.filter(name=repository_name)) > 0
        elif self.edit and self.instance is not None:   # if object is being edited we check for a name conflict with other repos.
            if set(repo.name for repo in user_repos.filter(name=repository_name)
                        if repo.id != self.instance.id).intersection({repository_name}):
                return True
        return False
**DEPRECATED**: Get the most recent error on this database.
dataset/ETHPy150Open Djacket/djacket/core/backend/repository/forms.py/RepositoryCreationForm._repo_exists--crossover with--dataset/ETHPy150Open mongodb/mongo-python-driver/pymongo/database.py/Database.previous_error