Rev 642: Use get_apparent_authors() rather than deprecated get_apparent_author(). in file:///home/jelmer/bzr-gtk/trunk/

Jelmer Vernooij jelmer at samba.org
Fri Jun 5 13:18:51 BST 2009


At file:///home/jelmer/bzr-gtk/trunk/

------------------------------------------------------------
revno: 642
revision-id: jelmer at samba.org-20090605121850-d139huhca7le1sxp
parent: jelmer at samba.org-20090604211021-o3ycs1uy97mwoime
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: trunk
timestamp: Fri 2009-06-05 14:18:50 +0200
message:
  Use get_apparent_authors() rather than deprecated get_apparent_author().
=== modified file 'annotate/gannotate.py'
--- a/annotate/gannotate.py	2009-05-04 20:06:58 +0000
+++ b/annotate/gannotate.py	2009-06-05 12:18:50 +0000
@@ -91,7 +91,7 @@
                     revno = author = ""
                 else:
                     last_seen = revision.revision_id
-                    author = revision.get_apparent_author()
+                    author = ", ".join(revision.get_apparent_authors())
 
                 if revision.revision_id not in self.revisions:
                     self.revisions[revision.revision_id] = revision
@@ -389,7 +389,7 @@
                 return j - i
 
 
-class FakeRevision:
+class FakeRevision(object):
     """ A fake revision.
 
     For when a revision is referenced but not present.
@@ -404,12 +404,13 @@
         self.timezone = 0
         self.properties = {}
 
-    def get_apparent_author(self):
-        return self.committer
+    def get_apparent_authors(self):
+        return [self.committer]
 
 
 class RevisionCache(object):
     """A caching revision source"""
+
     def __init__(self, real_source, seed_cache=None):
         self.__real_source = real_source
         if seed_cache is None:




More information about the bazaar-commits mailing list