Comments
Patch
@@ -355,6 +355,9 @@
configitem('bugzilla', 'regexp',
default=lambda: bugzilla._default_bug_re,
)
+configitem('bugzilla', 'strip',
+ default=0,
+)
class bzaccess(object):
'''Base class for access to Bugzilla.'''
@@ -1057,7 +1060,7 @@
def webroot(root):
'''strip leading prefix of repo root and turn into
url-safe path.'''
- count = int(self.ui.config('bugzilla', 'strip', 0))
+ count = int(self.ui.config('bugzilla', 'strip'))
root = util.pconvert(root)
while count > 0:
c = root.find('/')