Mercurial > public > mercurial-scm > hg
diff hgext/bugzilla.py @ 10282:08a0f04b56bd
many, many trivial check-code fixups
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Mon, 25 Jan 2010 00:05:27 -0600 |
parents | 25e572394f5c |
children | ea7a14ca118a |
line wrap: on
line diff
--- a/hgext/bugzilla.py Mon Jan 25 00:05:22 2010 -0600 +++ b/hgext/bugzilla.py Mon Jan 25 00:05:27 2010 -0600 @@ -297,7 +297,8 @@ def __init__(self, ui): bugzilla_2_16.__init__(self, ui) - self.default_notify = "cd %(bzdir)s && perl -T contrib/sendbugmail.pl %(id)s %(user)s" + self.default_notify = \ + "cd %(bzdir)s && perl -T contrib/sendbugmail.pl %(id)s %(user)s" class bugzilla_3_0(bugzilla_2_18): '''support for bugzilla 3.0 series.''' @@ -369,7 +370,8 @@ break start = m.end() for id in bugzilla._split_re.split(m.group(1)): - if not id: continue + if not id: + continue ids.add(int(id)) if ids: ids = self.filter_real_bug_ids(ids) @@ -389,7 +391,7 @@ c = root.find('/') if c == -1: break - root = root[c+1:] + root = root[c + 1:] count -= 1 return root