# HG changeset patch # User Paul Crowley # Date 1208866393 -3600 # Node ID 9f8e11ede780544f8c56d65c20271b807c3224b0 # Parent 9fa62cfd28213641b83ee7061c08c61246a3d913 fix changeset handling, remove broken debug statements diff -r 9fa62cfd2821 -r 9f8e11ede780 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)))