Mercurial > hg
comparison hgext/acl.py @ 6747:f6c00b17387c
use repo[changeid] to get a changectx
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Thu, 26 Jun 2008 14:35:46 -0500 |
parents | f89fd07fc51d |
children | fb42030d79d6 |
comparison
equal
deleted
inserted
replaced
6746:1dca460e7d1e | 6747:f6c00b17387c |
---|---|
89 ok_sources = self.ui.config('acl', 'sources', 'serve').split() | 89 ok_sources = self.ui.config('acl', 'sources', 'serve').split() |
90 return source not in ok_sources | 90 return source not in ok_sources |
91 | 91 |
92 def check(self, node): | 92 def check(self, node): |
93 '''return if access allowed, raise exception if not.''' | 93 '''return if access allowed, raise exception if not.''' |
94 files = self.repo.changectx(node).files() | 94 files = self.repo[node].files() |
95 if self.deniable: | 95 if self.deniable: |
96 for f in files: | 96 for f in files: |
97 if self.deny(f): | 97 if self.deny(f): |
98 self.ui.debug(_('acl: user %s denied on %s\n') % | 98 self.ui.debug(_('acl: user %s denied on %s\n') % |
99 (self.getuser(), f)) | 99 (self.getuser(), f)) |