Changeset - 85f69bf84d95
[Not reviewed]
beta
0 1 0
Marcin Kuzminski - 13 years ago 2013-02-10 21:05:53
marcin@python-works.com
non-lightweight dashboard mode is now more error proof when it stumbles across bad or damaged repositories
1 file changed with 6 insertions and 5 deletions:
0 comments (0 inline, 0 general)
rhodecode/model/scm.py
Show inline comments
 
@@ -106,16 +106,17 @@ class CachedRepoList(object):
 
            )(dbr.repo_name, 'get repo check'):
 
                continue
 

	
 
            if scmr is None:
 
            try:
 
                last_change = scmr.last_change
 
                tip = h.get_changeset_safe(scmr, 'tip')
 
            except Exception:
 
                log.error(
 
                    '%s this repository is present in database but it '
 
                    'cannot be created as an scm instance' % dbr.repo_name
 
                    'cannot be created as an scm instance, org_exc:%s'
 
                    % (dbr.repo_name, traceback.format_exc())
 
                )
 
                continue
 

	
 
            last_change = scmr.last_change
 
            tip = h.get_changeset_safe(scmr, 'tip')
 

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