~ubuntu-branches/ubuntu/oneiric/loggerhead/oneiric

« back to all changes in this revision

Viewing changes to loggerhead/apps/transport.py

  • Committer: Bazaar Package Importer
  • Author(s): Jelmer Vernooij, Max Bowsher
  • Date: 2010-12-18 14:43:23 UTC
  • mfrom: (4.1.5 sid)
  • Revision ID: james.westby@ubuntu.com-20101218144323-crnmzzz80vi8enlk
Tags: 1.18-1
[ Max Bowsher ]
* New upstream release.
 + Depends on bzr >= 1.17. Closes: #605653
* Remove remnants of patching to use the system YUI, which actually broke
  the use of YUI entirely. Loggerhead requires YUI 3, which is
  not packaged yet. Until it is, include YUI.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2008, 2009, 2010 Canonical Ltd.
 
1
# Copyright (C) 2008, 2009 Canonical Ltd.
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
18
18
 
19
19
import threading
20
20
 
21
 
from bzrlib import branch, errors, urlutils
 
21
from bzrlib import branch, errors, lru_cache, urlutils
22
22
from bzrlib.config import LocationConfig
 
23
from bzrlib.smart import request
23
24
from bzrlib.transport import get_transport
24
25
from bzrlib.transport.http import wsgi
25
26
 
59
60
            branch,
60
61
            name,
61
62
            {'cachepath': self._config.SQL_DIR},
 
63
            self.root.graph_cache,
62
64
            is_root=is_root,
63
65
            use_cdn=self._config.get_option('use_cdn'),
64
66
            )
142
144
class BranchesFromTransportRoot(object):
143
145
 
144
146
    def __init__(self, base, config):
 
147
        self.graph_cache = lru_cache.LRUCache(10)
145
148
        self.base = base
146
149
        self._config = config
147
150
 
165
168
class UserBranchesFromTransportRoot(object):
166
169
 
167
170
    def __init__(self, base, config):
 
171
        self.graph_cache = lru_cache.LRUCache(10)
168
172
        self.base = base
169
173
        self._config = config
170
174
        self.trunk_dir = config.get_option('trunk_dir')