Mercurial > hg
diff hgext/acl.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 | e81d2bd66908 |
children | 46293a0c7e9f |
line wrap: on
line diff
--- a/hgext/acl.py Thu Apr 23 15:40:10 2009 -0500 +++ b/hgext/acl.py Thu Apr 23 15:40:10 2009 -0500 @@ -74,7 +74,7 @@ user = getpass.getuser() cfg = ui.config('acl', 'config') if cfg: - ui.readsections(cfg, 'acl.allow', 'acl.deny') + ui.readconfig(cfg, sections = ['acl.allow', 'acl.deny']) allow = buildmatch(ui, repo, user, 'acl.allow') deny = buildmatch(ui, repo, user, 'acl.deny')