fix changeset handling, remove broken debug statements
authorPaul Crowley <paul@lshift.net>
Tue, 22 Apr 2008 13:13:13 +0100
changeset 24 9f8e11ede780
parent 23 9fa62cfd2821
child 25 9d78dca32325
fix changeset handling, remove broken debug statements
access.py
--- 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)))