/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: Jelmer Vernooij
  • Date: 2007-07-15 15:13:34 UTC
  • Revision ID: jelmer@samba.org-20070715151334-2t0g8fmpgj6vnqa7
Add icon for Bazaar preferences.

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, author, revno, highlight color, line]
 
69
        # [revision id, line number, committer, revno, highlight color, line]
70
70
        self.annomodel = gtk.ListStore(gobject.TYPE_STRING,
71
71
                                       gobject.TYPE_STRING,
72
72
                                       gobject.TYPE_STRING,
81
81
            for line_no, (revision, revno, line)\
82
82
                    in enumerate(self._annotate(tree, file_id)):
83
83
                if revision.revision_id == last_seen and not self.all:
84
 
                    revno = author = ""
 
84
                    revno = committer = ""
85
85
                else:
86
86
                    last_seen = revision.revision_id
87
 
                    author = revision.get_apparent_author()
 
87
                    committer = revision.committer
88
88
 
89
89
                if revision.revision_id not in self.revisions:
90
90
                    self.revisions[revision.revision_id] = revision
91
91
 
92
92
                self.annomodel.append([revision.revision_id,
93
93
                                       line_no + 1,
94
 
                                       author,
 
94
                                       committer,
95
95
                                       revno,
96
96
                                       None,
97
97
                                       line.rstrip("\r\n")
408
408
        self.timezone = 0
409
409
        self.properties = {}
410
410
 
411
 
    def get_apparent_author(self):
412
 
        return self.committer
413
 
 
414
411
 
415
412
class RevisionCache(object):
416
413
    """A caching revision source"""