/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: Markus Korn
  • Date: 2009-03-05 16:50:39 UTC
  • mto: (635.2.4 trunk)
  • mto: This revision was merged to the branch mainline in revision 639.
  • Revision ID: thekorn@gmx.de-20090305165039-h6xh48wr9lwe1661
* register BranchSelectionBox() as a gobject type to fix (LP: #294396)

Show diffs side-by-side

added added

removed removed

Lines of Context:
91
91
                    revno = author = ""
92
92
                else:
93
93
                    last_seen = revision.revision_id
94
 
                    author = ", ".join(revision.get_apparent_authors())
 
94
                    author = revision.get_apparent_author()
95
95
 
96
96
                if revision.revision_id not in self.revisions:
97
97
                    self.revisions[revision.revision_id] = revision
139
139
        current_revision.timestamp = time.time()
140
140
        current_revision.message = '[Not yet committed]'
141
141
        current_revision.parent_ids = tree.get_parent_ids()
142
 
        current_revision.properties['branch-nick'] = self.branch._get_nick(local=True)
 
142
        current_revision.properties['branch-nick'] = self.branch.nick
143
143
        current_revno = '%d?' % (self.branch.revno() + 1)
144
144
        repository = self.branch.repository
145
145
        if self.revision_id == CURRENT_REVISION:
389
389
                return j - i
390
390
 
391
391
 
392
 
class FakeRevision(object):
 
392
class FakeRevision:
393
393
    """ A fake revision.
394
394
 
395
395
    For when a revision is referenced but not present.
404
404
        self.timezone = 0
405
405
        self.properties = {}
406
406
 
407
 
    def get_apparent_authors(self):
408
 
        return [self.committer]
 
407
    def get_apparent_author(self):
 
408
        return self.committer
409
409
 
410
410
 
411
411
class RevisionCache(object):
412
412
    """A caching revision source"""
413
 
 
414
413
    def __init__(self, real_source, seed_cache=None):
415
414
        self.__real_source = real_source
416
415
        if seed_cache is None: