Mercurial > hg > mercurial-crew-with-dirclash
comparison hgext/acl.py @ 3426:f29989e9746e
use ui.readsections in the acl extension
author | Alexis S. L. Carvalho <alexis@cecm.usp.br> |
---|---|
date | Tue, 17 Oct 2006 17:04:26 -0300 |
parents | 5e39ad2c8b52 |
children | abaee83ce0a6 |
comparison
equal
deleted
inserted
replaced
3425:e4452c3fa736 | 3426:f29989e9746e |
---|---|
78 self.ui = ui | 78 self.ui = ui |
79 self.repo = repo | 79 self.repo = repo |
80 self.user = getpass.getuser() | 80 self.user = getpass.getuser() |
81 cfg = self.ui.config('acl', 'config') | 81 cfg = self.ui.config('acl', 'config') |
82 if cfg: | 82 if cfg: |
83 self.ui.readconfig(cfg) | 83 self.ui.readsections(cfg, 'acl.allow', 'acl.deny') |
84 self.allow, self.allowable = self.buildmatch('acl.allow') | 84 self.allow, self.allowable = self.buildmatch('acl.allow') |
85 self.deny, self.deniable = self.buildmatch('acl.deny') | 85 self.deny, self.deniable = self.buildmatch('acl.deny') |
86 | 86 |
87 def skipsource(self, source): | 87 def skipsource(self, source): |
88 '''true if incoming changes from this source should be skipped.''' | 88 '''true if incoming changes from this source should be skipped.''' |