18
17
from loggerhead.controllers.atom_ui import AtomUI
19
18
from loggerhead.controllers.download_ui import DownloadUI
20
19
from loggerhead.controllers.search_ui import SearchUI
22
20
from loggerhead.history import History
23
21
from loggerhead import util
26
24
class BranchWSGIApp(object):
28
def __init__(self, branch, friendly_name=None, config={},
26
def __init__(self, branch, friendly_name=None, config={}, graph_cache=None):
32
29
self.friendly_name = friendly_name
34
30
self.log = logging.getLogger('loggerhead.%s' % (friendly_name,))
36
32
graph_cache = bzrlib.lru_cache.LRUCache()
37
33
self.graph_cache = graph_cache
41
36
_history = History(self.branch, self.graph_cache)