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() |