hgext/acl.py
changeset 3436 f29989e9746e
parent 3062 5e39ad2c8b52
child 3877 abaee83ce0a6
equal deleted inserted replaced
3435:e4452c3fa736 3436: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.'''