Changeset - 08ac2c3ae810
[Not reviewed]
beta
0 1 0
Marcin Kuzminski - 15 years ago 2011-04-17 16:26:40
marcin@python-works.com
added some info to corrupted repo message that helps diagnose the cause from log itself.
1 file changed with 3 insertions and 1 deletions:
0 comments (0 inline, 0 general)
rhodecode/model/scm.py
Show inline comments
 
@@ -137,13 +137,15 @@ class ScmModel(BaseModel):
 
        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 repo is None or dbrepo is None:
 
                    log.error('Repository %s looks somehow corrupted', r_name)
 
                    log.error('Repository "%s" looks somehow corrupted '
 
                              'fs-repo:%s,db-repo:%s both values should be '
 
                              'present', r_name, repo, dbrepo)
 
                    continue
 
                last_change = repo.last_change
 
                tip = h.get_changeset_safe(repo, 'tip')
 

	
 
                tmp_d = {}
 
                tmp_d['name'] = dbrepo.repo_name
0 comments (0 inline, 0 general)