# HG changeset patch # User Scott Ehlert # Date 1270243890 18000 # Node ID bb7c0118251221b5b380321ae9117b592ade92a1 # Parent fafb3ea5d807f792cb251399f77de5d508db4ec9 Merged in changes from bugzilla extension in mercurial 1.5.1. diff -r fafb3ea5d807 -r bb7c01182512 bugzilla.py --- a/bugzilla.py Fri Dec 11 17:42:39 2009 -0600 +++ b/bugzilla.py Fri Apr 02 16:31:30 2010 -0500 @@ -3,7 +3,7 @@ # Copyright 2006 Vadim Gelfer # # This software may be used and distributed according to the terms of the -# GNU General Public License version 2, incorporated herein by reference. +# GNU General Public License version 2 or any later version. '''hooks for integrating with the Bugzilla bug tracker @@ -103,7 +103,7 @@ Activating the extension:: [extensions] - hgext.bugzilla = + bugzilla = [hooks] # run bugzilla hook on every change pulled or pushed in here @@ -310,7 +310,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.''' @@ -382,7 +383,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) @@ -402,7 +404,7 @@ c = root.find('/') if c == -1: break - root = root[c+1:] + root = root[c + 1:] count -= 1 return root