Show More
@@ -357,6 +357,9 b" configitem('bugzilla', 'regexp'," | |||||
357 | r'(?P<ids>(?:\d+\s*(?:,?\s*(?:and)?)?\s*)+)' |
|
357 | r'(?P<ids>(?:\d+\s*(?:,?\s*(?:and)?)?\s*)+)' | |
358 | r'\.?\s*(?:h(?:ours?)?\s*(?P<hours>\d*(?:\.\d+)?))?') |
|
358 | r'\.?\s*(?:h(?:ours?)?\s*(?P<hours>\d*(?:\.\d+)?))?') | |
359 | ) |
|
359 | ) | |
|
360 | configitem('bugzilla', 'strip', | |||
|
361 | default=0, | |||
|
362 | ) | |||
360 |
|
363 | |||
361 | class bzaccess(object): |
|
364 | class bzaccess(object): | |
362 | '''Base class for access to Bugzilla.''' |
|
365 | '''Base class for access to Bugzilla.''' | |
@@ -1055,7 +1058,7 b' class bugzilla(object):' | |||||
1055 | def webroot(root): |
|
1058 | def webroot(root): | |
1056 | '''strip leading prefix of repo root and turn into |
|
1059 | '''strip leading prefix of repo root and turn into | |
1057 | url-safe path.''' |
|
1060 | url-safe path.''' | |
1058 |
count = int(self.ui.config('bugzilla', 'strip' |
|
1061 | count = int(self.ui.config('bugzilla', 'strip')) | |
1059 | root = util.pconvert(root) |
|
1062 | root = util.pconvert(root) | |
1060 | while count > 0: |
|
1063 | while count > 0: | |
1061 | c = root.find('/') |
|
1064 | c = root.find('/') |
General Comments 0
You need to be logged in to leave comments.
Login now