--- a/access.py Tue Apr 22 13:03:17 2008 +0100
+++ b/access.py Tue Apr 22 13:13:13 2008 +0100
@@ -30,19 +30,15 @@
ctx = self.repo.changectx(node)
branch = ctx.branch()
if not self.rules.allow("write", branch=branch, file=None):
- self.ui.debug(_('%s: user %s not allowed on branch %s\n') %
- (__name__, self.user, branch))
return False
for f in ctx.files():
if not self.rules.allow("write", branch=branch, file=f):
- self.ui.debug(_('%s: user %s not allowed on %s\n') %
- (__name__, self.user, f))
return False
self.ui.debug(_('%s: allowing changeset %s\n') % (__name__, short(node)))
return True
def check(self, node):
- if not allow(self, node):
+ if not self.allow(node):
raise util.Abort(_('%s: access denied for changeset %s') %
(__name__, short(node)))