Mercurial > public > mercurial-scm > hg
diff hgext/bugzilla.py @ 8142:912bfef12ba6
ui: fold readsections into readconfig
readconfig now reads only single files
readconfig takes an optional list of sections
readconfig trusts files we're looking for sections in
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Thu, 23 Apr 2009 15:40:10 -0500 |
parents | 0edca606c0f1 |
children | 08e1baf924ca |
line wrap: on
line diff
--- a/hgext/bugzilla.py Thu Apr 23 15:40:10 2009 -0500 +++ b/hgext/bugzilla.py Thu Apr 23 15:40:10 2009 -0500 @@ -139,7 +139,7 @@ timeout = int(self.ui.config('bugzilla', 'timeout', 5)) usermap = self.ui.config('bugzilla', 'usermap') if usermap: - self.ui.readsections(usermap, 'usermap') + self.ui.readconfig(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,