diff --git a/hgext/acl.py b/hgext/acl.py --- a/hgext/acl.py +++ b/hgext/acl.py @@ -375,9 +375,9 @@ _txnhook(ui, repo, hooktype, node, source, user, **kwargs) def _pkhook(ui, repo, hooktype, node, source, user, **kwargs): - if kwargs['namespace'] == 'bookmarks': - bookmark = kwargs['key'] - ctx = kwargs['new'] + if kwargs[r'namespace'] == 'bookmarks': + bookmark = kwargs[r'key'] + ctx = kwargs[r'new'] allowbookmarks = buildmatch(ui, None, user, 'acl.allow.bookmarks') denybookmarks = buildmatch(ui, None, user, 'acl.deny.bookmarks')