Changeset - 8748f7974ba8
[Not reviewed]
beta
0 1 0
Marcin Kuzminski - 15 years ago 2011-04-08 15:12:10
marcin@python-works.com
change the way of detection of corrupted repos. sqlalchemy objects needs to be checkec `is None`.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
rhodecode/model/scm.py
Show inline comments
 
@@ -136,13 +136,13 @@ class ScmModel(BaseModel):
 
                             .all()]
 
        for r_name in all_repos:
 
            r_dbr = self.get(r_name, invalidation_list)
 
            if r_dbr is not None:
 
                repo, dbrepo = r_dbr
 

	
 
                if not repo and dbrepo:
 
                if repo is None and dbrepo is None:
 
                    log.error('Repository %s looks somehow corrupted', r_name)
 
                    continue
 
                last_change = repo.last_change
 
                tip = h.get_changeset_safe(repo, 'tip')
 

	
 
                tmp_d = {}
0 comments (0 inline, 0 general)