Show More
@@ -146,18 +146,17 b' class notifier(object):' | |||
|
146 | 146 | |
|
147 | 147 | def subscribers(self): |
|
148 | 148 | '''return list of email addresses of subscribers to this repo.''' |
|
149 |
subs = |
|
|
149 | subs = set() | |
|
150 | 150 | for user, pats in self.ui.configitems('usersubs'): |
|
151 | 151 | for pat in pats.split(','): |
|
152 | 152 | if fnmatch.fnmatch(self.repo.root, pat.strip()): |
|
153 |
subs |
|
|
153 | subs.add(self.fixmail(user)) | |
|
154 | 154 | for pat, users in self.ui.configitems('reposubs'): |
|
155 | 155 | if fnmatch.fnmatch(self.repo.root, pat): |
|
156 | 156 | for user in users.split(','): |
|
157 |
subs |
|
|
158 | subs = util.sort(subs) | |
|
157 | subs.add(self.fixmail(user)) | |
|
159 | 158 | return [mail.addressencode(self.ui, s, self.charsets, self.test) |
|
160 | for s in subs] | |
|
159 | for s in sorted(subs)] | |
|
161 | 160 | |
|
162 | 161 | def url(self, path=None): |
|
163 | 162 | return self.ui.config('web', 'baseurl') + (path or self.root) |
General Comments 0
You need to be logged in to leave comments.
Login now