~jcsackett/loggerhead/add-lock-icon

« back to all changes in this revision

Viewing changes to loggerhead/apps/branch.py

  • Committer: Danilo Segan
  • Date: 2011-08-17 12:53:09 UTC
  • mfrom: (454.1.1 bug-718566)
  • Revision ID: danilo@canonical.com-20110817125309-2r1fgcrqt5kr5h43
Remove FileChangeCache to resolve bug #718566 [r=jam].

Show diffs side-by-side

added added

removed removed

Lines of Context:
63
63
        self.use_cdn = use_cdn
64
64
 
65
65
    def get_history(self):
66
 
        file_cache = None
67
66
        revinfo_disk_cache = None
68
67
        cache_path = self._config.get('cachepath', None)
69
68
        if cache_path is not None:
70
69
            # Only import the cache if we're going to use it.
71
70
            # This makes sqlite optional
72
71
            try:
73
 
                from loggerhead.changecache import (
74
 
                    FileChangeCache, RevInfoDiskCache)
 
72
                from loggerhead.changecache import RevInfoDiskCache
75
73
            except ImportError:
76
74
                self.log.debug("Couldn't load python-sqlite,"
77
75
                               " continuing without using a cache")
78
76
            else:
79
 
                file_cache = FileChangeCache(cache_path)
80
77
                revinfo_disk_cache = RevInfoDiskCache(cache_path)
81
78
        return History(
82
 
            self.branch, self.graph_cache, file_cache=file_cache,
 
79
            self.branch, self.graph_cache,
83
80
            revinfo_disk_cache=revinfo_disk_cache, cache_key=self.friendly_name)
84
81
 
85
82
    def url(self, *args, **kw):