~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/controllers/revlog_ui.py

  • Committer: Michael Hudson
  • Date: 2009-03-19 18:48:15 UTC
  • mfrom: (305.1.16 iter_changes-forevar)
  • Revision ID: michael.hudson@canonical.com-20090319184815-wnj0kvcnzx31n1lq
simplify the internal handling of differences between revisions, and in
particular use iter_changes to find said changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
 
14
14
        revid = urllib.unquote(self.args[0])
15
15
 
16
 
        changes = list(history.get_changes([revid]))
17
 
        history.add_changes(changes)
18
 
        history.get_branch_nicks(changes)
 
16
        change = history.get_changes([revid])[0]
 
17
        file_changes = history.get_file_changes(change)
 
18
        history.add_branch_nicks(change)
19
19
 
20
20
        return {
21
21
            'branch': self._branch,
22
 
            'entry': changes[0],
 
22
            'entry': change,
 
23
            'file_changes': file_changes,
23
24
            'util': util,
24
25
            'revid': revid,
25
26
            'url': self._branch.context_url,