configitems: register the 'bugzilla.bzdir' config
authorBoris Feld <boris.feld@octobus.net>
Fri, 07 Jul 2017 10:03:24 +0200
changeset 33394 a752d2e7ec9c
parent 33393 01a90fed5840
child 33395 b33d63651693
configitems: register the 'bugzilla.bzdir' config
hgext/bugzilla.py
--- a/hgext/bugzilla.py	Fri Jul 07 10:03:22 2017 +0200
+++ b/hgext/bugzilla.py	Fri Jul 07 10:03:24 2017 +0200
@@ -322,6 +322,9 @@
 configitem('bugzilla', 'apikey',
     default='',
 )
+configitem('bugzilla', 'bzdir',
+    default='/var/www/html/bugzilla',
+)
 
 class bzaccess(object):
     '''Base class for access to Bugzilla.'''
@@ -457,8 +460,7 @@
         for id in bugs.keys():
             self.ui.status(_('  bug %s\n') % id)
             cmdfmt = self.ui.config('bugzilla', 'notify', self.default_notify)
-            bzdir = self.ui.config('bugzilla', 'bzdir',
-                                   '/var/www/html/bugzilla')
+            bzdir = self.ui.config('bugzilla', 'bzdir')
             try:
                 # Backwards-compatible with old notify string, which
                 # took one string. This will throw with a new format