Skip to content
Browse files

Use standard recipient filtering for rebase e-mails.

  • Loading branch information...
1 parent 3b6624a commit 20e8368c868e8c84f36c3f44a3acb5574a9a28b9 @ohrn ohrn committed with mo Dec 18, 2012
Showing with 2 additions and 8 deletions.
  1. +2 −8 index.py
View
10 index.py
@@ -625,10 +625,7 @@ def updateBranch(user_name, repository_name, name, old, new, multiple):
pending_mails = []
- cursor.execute("SELECT uid FROM reviewusers WHERE review=%s", (review.id,))
- recipients = []
- for (user_id,) in cursor.fetchall():
- recipients.append(dbutils.User.fromId(db, user_id))
+ recipients = review.getRecipients(db)
for to_user in recipients:
pending_mails.extend(review_mail.sendReviewRebased(db, user, to_user, recipients, review, new_upstream_name, rebased_commits, onto_branch))
@@ -671,10 +668,7 @@ def updateBranch(user_name, repository_name, name, old, new, multiple):
pending_mails = []
- cursor.execute("SELECT uid FROM reviewusers WHERE review=%s", (review.id,))
- recipients = []
- for (user_id,) in cursor.fetchall():
- recipients.append(dbutils.User.fromId(db, user_id))
+ recipients = review.getRecipients(db)
for to_user in recipients:
pending_mails.extend(review_mail.sendReviewRebased(db, user, to_user, recipients, review, None, rebased_commits))

0 comments on commit 20e8368

Please sign in to comment.
Something went wrong with that request. Please try again.