Changeset - 39ae0f0972b9
[Not reviewed]
beta
0 1 0
Marcin Kuzminski - 14 years ago 2011-06-13 16:34:45
marcin@python-works.com
Fixed problem with new repos, and visibility on the main list.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
rhodecode/model/scm.py
Show inline comments
 
@@ -103,25 +103,25 @@ class CachedRepoList(object):
 
                db_repo.set_invalidate
 

	
 
            scmr = db_repo.scm_instance_cached
 

	
 
            #check permission at this level
 
            if not HasRepoPermissionAny('repository.read',
 
                                        'repository.write',
 
                                        'repository.admin')(dbr.repo_name,
 
                                                            'get repo check'):
 
                continue
 

	
 

	
 
            if not scmr:
 
            if scmr is None:
 
                log.error('%s this repository is present in database but it '
 
                          'cannot be created as an scm instance',
 
                          dbr.repo_name)
 
                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)