comparison rhodecode/model/scm.py @ 1255:c93234e9ac36 beta

fixes issue #163 RhodeCode will check and report a corrupted repo. A rescan with destroy old data should be perform after such operations
author Marcin Kuzminski <marcin@python-works.com>
date Wed, 13 Apr 2011 00:39:15 +0200
parents 8748f7974ba8
children 08ac2c3ae810
comparison
equal deleted inserted replaced
1254:2ea04758fafa 1255:c93234e9ac36
137 for r_name in all_repos: 137 for r_name in all_repos:
138 r_dbr = self.get(r_name, invalidation_list) 138 r_dbr = self.get(r_name, invalidation_list)
139 if r_dbr is not None: 139 if r_dbr is not None:
140 repo, dbrepo = r_dbr 140 repo, dbrepo = r_dbr
141 141
142 if repo is None and dbrepo is None: 142 if repo is None or dbrepo is None:
143 log.error('Repository %s looks somehow corrupted', r_name) 143 log.error('Repository %s looks somehow corrupted', r_name)
144 continue 144 continue
145 last_change = repo.last_change 145 last_change = repo.last_change
146 tip = h.get_changeset_safe(repo, 'tip') 146 tip = h.get_changeset_safe(repo, 'tip')
147 147