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

login
register
mail settings
Submitter Boris Feld
Date July 7, 2017, 6:57 p.m.
Message ID <4802d0b9e2ef4906f711.1499453857@FB>
Download mbox | patch
Permalink /patch/22104/
State Superseded
Headers show

Comments

Boris Feld - July 7, 2017, 6:57 p.m.
# HG changeset patch
# User Octobus <contact@octobus.net>
# Date 1499414604 -7200
#      Fri Jul 07 10:03:24 2017 +0200
# Node ID 4802d0b9e2ef4906f7114f01eaf87711dcdf3c40
# Parent  ff78bedcf36af5517172a74a19f2a223c0128c4f
# EXP-Topic config.register.bugzilla
configitems: register the 'bugzilla.bzdir' config

Patch

diff -r ff78bedcf36a -r 4802d0b9e2ef 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