use ui.readsections in the bugzilla extension
authorAlexis S. L. Carvalho <alexis@cecm.usp.br>
Tue, 17 Oct 2006 17:04:26 -0300
changeset 3435 e4452c3fa736
parent 3434 bf10cd8bc981
child 3436 f29989e9746e
use ui.readsections in the bugzilla extension
hgext/bugzilla.py
--- a/hgext/bugzilla.py	Tue Oct 17 17:04:25 2006 -0300
+++ b/hgext/bugzilla.py	Tue Oct 17 17:04:26 2006 -0300
@@ -74,7 +74,7 @@
         timeout = int(self.ui.config('bugzilla', 'timeout', 5))
         usermap = self.ui.config('bugzilla', 'usermap')
         if usermap:
-            self.ui.readconfig(usermap)
+            self.ui.readsections(usermap, 'usermap')
         self.ui.note(_('connecting to %s:%s as %s, password %s\n') %
                      (host, db, user, '*' * len(passwd)))
         self.conn = MySQLdb.connect(host=host, user=user, passwd=passwd,