comparison hgext/bugzilla.py @ 3425:e4452c3fa736

use ui.readsections in the bugzilla extension
author Alexis S. L. Carvalho <alexis@cecm.usp.br>
date Tue, 17 Oct 2006 17:04:26 -0300
parents 4c67ba93560b
children b4ad640a3bcf
comparison
equal deleted inserted replaced
3424:bf10cd8bc981 3425:e4452c3fa736
72 passwd = self.ui.config('bugzilla', 'password') 72 passwd = self.ui.config('bugzilla', 'password')
73 db = self.ui.config('bugzilla', 'db', 'bugs') 73 db = self.ui.config('bugzilla', 'db', 'bugs')
74 timeout = int(self.ui.config('bugzilla', 'timeout', 5)) 74 timeout = int(self.ui.config('bugzilla', 'timeout', 5))
75 usermap = self.ui.config('bugzilla', 'usermap') 75 usermap = self.ui.config('bugzilla', 'usermap')
76 if usermap: 76 if usermap:
77 self.ui.readconfig(usermap) 77 self.ui.readsections(usermap, 'usermap')
78 self.ui.note(_('connecting to %s:%s as %s, password %s\n') % 78 self.ui.note(_('connecting to %s:%s as %s, password %s\n') %
79 (host, db, user, '*' * len(passwd))) 79 (host, db, user, '*' * len(passwd)))
80 self.conn = MySQLdb.connect(host=host, user=user, passwd=passwd, 80 self.conn = MySQLdb.connect(host=host, user=user, passwd=passwd,
81 db=db, connect_timeout=timeout) 81 db=db, connect_timeout=timeout)
82 self.cursor = self.conn.cursor() 82 self.cursor = self.conn.cursor()