hgext/bugzilla.py
changeset 3435 e4452c3fa736
parent 2306 4c67ba93560b
child 3643 b4ad640a3bcf
equal deleted inserted replaced
3434:bf10cd8bc981 3435: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()