/loggerhead/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/loggerhead/trunk

« back to all changes in this revision

Viewing changes to loggerhead/controllers/changelog_ui.py

  • Committer: Michael Hudson
  • Date: 2007-11-19 08:48:54 UTC
  • mfrom: (128.2.34 loggerhead.robey)
  • mto: This revision was merged to the branch mainline in revision 142.
  • Revision ID: michael.hudson@canonical.com-20071119084854-b1r1fqwzwve1hcgt
[merge conflict] from robey

Show diffs side-by-side

added added

removed removed

Lines of Context:
70
70
                    else:
71
71
                        i = None
72
72
                    scan_list = revid_list[i:]
73
 
                entry_list = scan_list[:pagesize]
74
 
                entries = h.get_changes(entry_list)
75
 
                h.add_changes(entries)
 
73
                change_list = scan_list[:pagesize]
 
74
                changes = list(h.get_changes(change_list))
 
75
                h.add_changes(changes)
76
76
            except:
77
77
                self.log.exception('Exception fetching changes')
78
78
                raise InternalError('Could not fetch changes')
83
83
                navigation.query = query
84
84
            util.fill_in_navigation(navigation)
85
85
 
86
 
            entries = list(entries)
87
86
            # add parent & merge-point branch-nick info, in case it's useful
88
 
            h.get_branch_nicks(entries)
 
87
            h.get_branch_nicks(changes)
89
88
 
90
89
            # does every change on this page have the same committer?  if so,
91
90
            # tell the template to show committer info in the "details block"
92
91
            # instead of on each line.
93
92
            all_same_author = True
94
93
 
95
 
            if entries:
96
 
                author = entries[0].author
97
 
                for e in entries[1:]:
 
94
            if changes:
 
95
                author = changes[0].author
 
96
                for e in changes[1:]:
98
97
                    if e.author != author:
99
98
                        all_same_author = False
100
99
                        break
101
100
 
102
101
            vals = {
103
102
                'branch': self._branch,
104
 
                'changes': entries,
 
103
                'changes': changes,
105
104
                'util': util,
106
105
                'history': h,
107
106
                'revid': revid,