--- a/hgext/acl.py Fri Sep 18 17:37:51 2009 +0200
+++ b/hgext/acl.py Sat Sep 19 01:15:38 2009 +0200
@@ -60,12 +60,12 @@
def buildmatch(ui, repo, user, key):
'''return tuple of (match function, list enabled).'''
if not ui.has_section(key):
- ui.debug(_('acl: %s not enabled\n') % key)
+ ui.debug('acl: %s not enabled\n' % key)
return None
pats = [pat for pat, users in ui.configitems(key)
if user in users.replace(',', ' ').split()]
- ui.debug(_('acl: %s enabled, %d entries for user %s\n') %
+ ui.debug('acl: %s enabled, %d entries for user %s\n' %
(key, len(pats), user))
if pats:
return match.match(repo.root, '', pats)
@@ -77,7 +77,7 @@
raise util.Abort(_('config error - hook type "%s" cannot stop '
'incoming changesets') % hooktype)
if source not in ui.config('acl', 'sources', 'serve').split():
- ui.debug(_('acl: changes have source "%s" - skipping\n') % source)
+ ui.debug('acl: changes have source "%s" - skipping\n' % source)
return
user = None
@@ -99,9 +99,9 @@
ctx = repo[rev]
for f in ctx.files():
if deny and deny(f):
- ui.debug(_('acl: user %s denied on %s\n') % (user, f))
+ ui.debug('acl: user %s denied on %s\n' % (user, f))
raise util.Abort(_('acl: access denied for changeset %s') % ctx)
if allow and not allow(f):
- ui.debug(_('acl: user %s not allowed on %s\n') % (user, f))
+ ui.debug('acl: user %s not allowed on %s\n' % (user, f))
raise util.Abort(_('acl: access denied for changeset %s') % ctx)
- ui.debug(_('acl: allowing changeset %s\n') % ctx)
+ ui.debug('acl: allowing changeset %s\n' % ctx)