Patchwork [02,of,10,V2] configitems: register the 'bugzilla.bzdir' config

login
register
mail settings
Submitter Boris Feld
Date July 11, 2017, 3:59 p.m.
Message ID <3d5a8cdda2a96f147a25.1499788776@FB>
Download mbox | patch
Permalink /patch/22227/
State Accepted
Headers show

Comments

Boris Feld - July 11, 2017, 3:59 p.m.
# HG changeset patch
# User Boris Feld <boris.feld@octobus.net>
# Date 1499414604 -7200
#      Fri Jul 07 10:03:24 2017 +0200
# Node ID 3d5a8cdda2a96f147a2542c65aeb8d8addec06f0
# Parent  63cf0aae1472ea685e1543472ea722b0ea89784e
# EXP-Topic config.register.bugzilla
configitems: register the 'bugzilla.bzdir' config

Patch

diff -r 63cf0aae1472 -r 3d5a8cdda2a9 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