--- a/access.py Tue Apr 22 10:20:47 2008 +0100
+++ b/access.py Tue Apr 22 10:27:43 2008 +0100
@@ -29,12 +29,12 @@
'''return if access allowed, raise exception if not.'''
ctx = self.repo.changectx(node)
branch = ctx.branch()
- if not self.rules.allow("write", branch=self.branch, file=None):
+ 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=self.branch, file=f):
+ 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