Mercurial > kallithea
comparison rhodecode/model/scm.py @ 1039:51b70569c330 beta
extended admin rescan to show what repositories was added and what removed
fixed found bugs, added expunge to cached getter since it introduce some more problems.
Added some relationship to properly clean related objects from database.
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sun, 13 Feb 2011 01:38:39 +0100 |
parents | 5554aa9c2480 |
children | ab0a2b69d082 |
comparison
equal
deleted
inserted
replaced
1038:5554aa9c2480 | 1039:51b70569c330 |
---|---|
215 if pre_invalidate: | 215 if pre_invalidate: |
216 #this returns object to invalidate | 216 #this returns object to invalidate |
217 invalidate = self._should_invalidate(repo_name) | 217 invalidate = self._should_invalidate(repo_name) |
218 if invalidate: | 218 if invalidate: |
219 log.info('invalidating cache for repository %s', repo_name) | 219 log.info('invalidating cache for repository %s', repo_name) |
220 #region_invalidate(_get_repo, None, repo_name) | 220 region_invalidate(_get_repo, None, repo_name) |
221 self._mark_invalidated(invalidate) | 221 self._mark_invalidated(invalidate) |
222 dbinvalidate = True | 222 dbinvalidate = True |
223 | 223 |
224 r, dbr = None, None | 224 r, dbr = None, None |
225 if retval == 'repo' or 'all': | 225 if retval == 'repo' or 'all': |