Mercurial > kallithea
comparison pylons_app/model/hg_model.py @ 276:5e59f29edf66
changed way of getting repository in changelog. + some code cleanups
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Fri, 11 Jun 2010 16:52:00 +0200 |
parents | 0e5455fda8fd |
children | cd2ee462fc2c |
comparison
equal
deleted
inserted
replaced
275:2d61aa00e855 | 276:5e59f29edf66 |
---|---|
51 @cache_region('long_term', 'cached_repo_list') | 51 @cache_region('long_term', 'cached_repo_list') |
52 def _get_repos_cached(): | 52 def _get_repos_cached(): |
53 """ | 53 """ |
54 return cached dict with repos | 54 return cached dict with repos |
55 """ | 55 """ |
56 log.info('getting all repositories list') | |
56 from pylons import app_globals as g | 57 from pylons import app_globals as g |
57 return HgModel.repo_scan(g.paths[0][0], g.paths[0][1], g.baseui) | 58 return HgModel.repo_scan(g.paths[0][0], g.paths[0][1], g.baseui) |
58 | 59 |
59 @cache_region('long_term', 'full_changelog') | 60 @cache_region('long_term', 'full_changelog') |
60 def _full_changelog_cached(repo_name): | 61 def _full_changelog_cached(repo_name): |