/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
  • Date: 2007-08-30 23:16:32 UTC
  • Revision ID: aaron.bentley@utoronto.ca-20070830231632-gp843oy45sgyjl9z
Use get_apparent_author, rename variables to 'author'

Show diffs side-by-side

added added

removed removed

Lines of Context:
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 = committer = ""
 
84
                    revno = author = ""
85
85
                else:
86
86
                    last_seen = revision.revision_id
87
 
                    committer = revision.properties.get('author',
88
 
                        revision.committer)
 
87
                    author = revision.get_apparent_author()
89
88
 
90
89
                if revision.revision_id not in self.revisions:
91
90
                    self.revisions[revision.revision_id] = revision
92
91
 
93
92
                self.annomodel.append([revision.revision_id,
94
93
                                       line_no + 1,
95
 
                                       committer,
 
94
                                       author,
96
95
                                       revno,
97
96
                                       None,
98
97
                                       line.rstrip("\r\n")
409
408
        self.timezone = 0
410
409
        self.properties = {}
411
410
 
 
411
    def get_apparent_author(self):
 
412
        return self.committer
 
413
 
412
414
 
413
415
class RevisionCache(object):
414
416
    """A caching revision source"""