Mercurial > hg > pyhgsh
comparison hgext/bugzilla.py @ 2239:5e5adc1910ed
bugzilla hook: skip empty groups.
author | Vadim Gelfer <vadim.gelfer@gmail.com> |
---|---|
date | Tue, 09 May 2006 14:39:56 -0700 |
parents | 05b6c13f43c6 |
children | 4c67ba93560b |
comparison
equal
deleted
inserted
replaced
2231:9a2f4b2e7cf1 | 2239:5e5adc1910ed |
---|---|
212 m = bugzilla._bug_re.search(desc, start) | 212 m = bugzilla._bug_re.search(desc, start) |
213 if not m: | 213 if not m: |
214 break | 214 break |
215 start = m.end() | 215 start = m.end() |
216 for id in bugzilla._split_re.split(m.group(1)): | 216 for id in bugzilla._split_re.split(m.group(1)): |
217 if not id: continue | |
217 ids[int(id)] = 1 | 218 ids[int(id)] = 1 |
218 ids = ids.keys() | 219 ids = ids.keys() |
219 if ids: | 220 if ids: |
220 ids = self.filter_real_bug_ids(ids) | 221 ids = self.filter_real_bug_ids(ids) |
221 if ids: | 222 if ids: |