Rev 630: Show multiple authors for a commit if there is more than one. in file:///home/jelmer/bzr-gtk/trunk/

Jelmer Vernooij jelmer at samba.org
Thu Mar 5 16:44:14 GMT 2009


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

------------------------------------------------------------
revno: 630
revision-id: jelmer at samba.org-20090305164412-y0m9osmjwd4iu7r0
parent: martin.albisetti at canonical.com-20090227172057-0qve6awsdwifb9hj
author: James Westby <jw+debian at jameswestby.net>, Jelmer Vernooij <jelmer at samba.org>
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: trunk
timestamp: Thu 2009-03-05 17:44:12 +0100
message:
  Show multiple authors for a commit if there is more than one.
=== modified file 'revisionview.py'
--- a/revisionview.py	2008-11-13 06:55:41 +0000
+++ b/revisionview.py	2009-03-05 16:44:12 +0000
@@ -403,9 +403,12 @@
             self.committer.set_text(revision.committer)
         else:
             self.committer.set_text("")
-        author = revision.properties.get('author', '')
-        if author != '':
-            self.author.set_text(author)
+        if getattr(revision, "get_apparent_authors", None) is None:
+            authors = [revision.get_apparent_author()]
+        else:
+            authors = revision.get_apparent_authors()
+        if authors != [revision.committer]:
+            self.author.set_text("\n".join(author))
             self.author.show()
             self.author_label.show()
         else:
@@ -596,7 +599,7 @@
         row += 1
         self.author_label = gtk.Label()
         self.author_label.set_alignment(1.0, 0.5)
-        self.author_label.set_markup("<b>Author:</b>")
+        self.author_label.set_markup("<b>Author(s):</b>")
         self.table.attach(self.author_label, 0, 1, row, row+1, gtk.FILL, gtk.FILL)
         self.author_label.show()
 




More information about the bazaar-commits mailing list