Mercurial > public > src > rhodecode
diff pylons_app/controllers/files.py @ 245:a83a1799480c
Reimplemented way of caching repos list, hg model now get's repos objects right from cached dict, this way we skipp creating instances of MercurialRepository and gain performance. Some import cleanup
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Thu, 03 Jun 2010 00:04:48 +0200 |
parents | 1a18994cdc3b |
children | 3782a6d698af |
line wrap: on
line diff
--- a/pylons_app/controllers/files.py Tue Jun 01 22:19:03 2010 +0200 +++ b/pylons_app/controllers/files.py Thu Jun 03 00:04:48 2010 +0200 @@ -1,15 +1,12 @@ -import tempfile -from pylons import request, response, session, tmpl_context as c, url, config, \ - app_globals as g -from pylons.controllers.util import abort, redirect +from mercurial import archival +from pylons import request, response, session, tmpl_context as c, url from pylons_app.lib.auth import LoginRequired from pylons_app.lib.base import BaseController, render -from pylons_app.lib.utils import get_repo_slug from pylons_app.model.hg_model import HgModel from vcs.exceptions import RepositoryError, ChangesetError from vcs.utils import diffs as differ import logging -from mercurial import archival +import tempfile log = logging.getLogger(__name__)