Simplify code a bit.
authorJelmer Vernooij <jelmer@samba.org>
Tue, 30 Nov 2010 11:37:34 +0000 (12:37 +0100)
committerJelmer Vernooij <jelmer@samba.org>
Tue, 30 Nov 2010 11:37:34 +0000 (12:37 +0100)
import-and-analyse.py

index 39ab3a8..6a791f7 100755 (executable)
@@ -50,10 +50,11 @@ def check_and_send_mails(cur, old):
             print "... hasn't regressed since %s: %s" % (old_rev, old_status)
         return
 
+    branch = t.get_branch()
     recipients = set()
     change_log = ""
 
-    for rev in t.get_branch().log(from_rev=cur.revision, exclude_revs=set([old.revision])):
+    for rev in branch.log(from_rev=cur.revision, exclude_revs=set([old.revision])):
         recipients.add(rev.author)
         recipients.add(rev.committer)
         change_log += """