~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/controllers/revision_ui.py

  • Committer: Michael Hudson
  • Date: 2008-07-01 04:04:03 UTC
  • mfrom: (179.1.16 dont-hold-branches-open)
  • Revision ID: michael.hudson@canonical.com-20080701040403-payspbvmsfmp4e84
refactor things to avoid keeping branches open when they are not being viewed.
history objects are now ephemeral wrappers around branches, with the
expensive-to-calculate whole history data being cached elsewhere, in a
LRUCache.
also fixes a logging setup regression and deletes some dead code.

Show diffs side-by-side

added added

removed removed

Lines of Context:
52
52
        navigation = util.Container(
53
53
            revid_list=revid_list, revid=revid, start_revid=start_revid,
54
54
            filter_file_id=filter_file_id, pagesize=1,
55
 
            scan_url='/revision', branch=self._branch, feed=True)
 
55
            scan_url='/revision', branch=self._branch, feed=True, history=h)
56
56
        if query is not None:
57
57
            navigation.query = query
58
58
        util.fill_in_navigation(navigation)