1.1 --- a/bugzilla.py Fri Dec 11 17:42:39 2009 -0600
1.2 +++ b/bugzilla.py Fri Apr 02 16:31:30 2010 -0500
1.3 @@ -3,7 +3,7 @@
1.4 # Copyright 2006 Vadim Gelfer <[email protected]>
1.5 #
1.6 # This software may be used and distributed according to the terms of the
1.7 -# GNU General Public License version 2, incorporated herein by reference.
1.8 +# GNU General Public License version 2 or any later version.
1.9
1.10 '''hooks for integrating with the Bugzilla bug tracker
1.11
1.12 @@ -103,7 +103,7 @@
1.13 Activating the extension::
1.14
1.15 [extensions]
1.16 - hgext.bugzilla =
1.17 + bugzilla =
1.18
1.19 [hooks]
1.20 # run bugzilla hook on every change pulled or pushed in here
1.21 @@ -310,7 +310,8 @@
1.22
1.23 def __init__(self, ui):
1.24 bugzilla_2_16.__init__(self, ui)
1.25 - self.default_notify = "cd %(bzdir)s && perl -T contrib/sendbugmail.pl %(id)s %(user)s"
1.26 + self.default_notify = \
1.27 + "cd %(bzdir)s && perl -T contrib/sendbugmail.pl %(id)s %(user)s"
1.28
1.29 class bugzilla_3_0(bugzilla_2_18):
1.30 '''support for bugzilla 3.0 series.'''
1.31 @@ -382,7 +383,8 @@
1.32 break
1.33 start = m.end()
1.34 for id in bugzilla._split_re.split(m.group(1)):
1.35 - if not id: continue
1.36 + if not id:
1.37 + continue
1.38 ids.add(int(id))
1.39 if ids:
1.40 ids = self.filter_real_bug_ids(ids)
1.41 @@ -402,7 +404,7 @@
1.42 c = root.find('/')
1.43 if c == -1:
1.44 break
1.45 - root = root[c+1:]
1.46 + root = root[c + 1:]
1.47 count -= 1
1.48 return root
1.49