/b-gtk/fix-viz

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/b-gtk/fix-viz

« back to all changes in this revision

Viewing changes to annotate/gannotate.py

  • Committer: Aaron Bentley
  • Author(s): Aaron Bentley
  • Date: 2007-08-16 14:27:37 UTC
  • Revision ID: abentley@panoramicfeedback.com-20070816142737-qejb84j26411tlu4
Add author support to gannotate and log viewer

Show diffs side-by-side

added added

removed removed

Lines of Context:
66
66
        self.revision_id = getattr(tree, 'get_revision_id', 
67
67
                                   lambda: CURRENT_REVISION)()
68
68
        
69
 
        # [revision id, line number, committer, revno, highlight color, line]
 
69
        # [revision id, line number, author, revno, highlight color, line]
70
70
        self.annomodel = gtk.ListStore(gobject.TYPE_STRING,
71
71
                                       gobject.TYPE_STRING,
72
72
                                       gobject.TYPE_STRING,
84
84
                    revno = committer = ""
85
85
                else:
86
86
                    last_seen = revision.revision_id
87
 
                    committer = revision.committer
 
87
                    committer = revision.properties.get('author',
 
88
                        revision.committer)
88
89
 
89
90
                if revision.revision_id not in self.revisions:
90
91
                    self.revisions[revision.revision_id] = revision